source: git/debian/rules @ 1b5a73d

RELEASE/1.0RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since 1b5a73d was 4b4bd47, checked in by Olly Betts <olly@…>, 24 years ago

Removed old survex wrapper and tidied up around it.

git-svn-id: file:///home/survex-svn/survex/trunk@1704 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100755
File size: 2.4 KB
RevLine 
[70d428e]1#!/usr/bin/make -f
[b459b95]2# Based on sample debian/rules that uses debhelper.
[70d428e]3# GPL copyright 1997 to 1999 by Joey Hess.
[4b4bd47]4# Copyright (C) 2001 Wookey
5# Copyright (C) 2001 Olly Betts
[70d428e]6#
[4b4bd47]7# This is a multibinary package. You to build any of the binary packages
8# independently, via binary-<package> targets.
[70d428e]9
10# Uncomment this to turn on verbose mode.
11#export DH_VERBOSE=1
12
13# This is the debhelper compatability version to use.
14export DH_COMPAT=1
15
16# This has to be exported to make some magic below work.
17export DH_OPTIONS
18
19build: build-stamp
20build-stamp:
21        dh_testdir
22
[4b4bd47]23        ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-docdir=\$${prefix}/share/doc/survex
[70d428e]24        $(MAKE)
25
26        touch build-stamp
27
28clean:
29        dh_testdir
30        dh_testroot
31        rm -f build-stamp
32
33        -$(MAKE) distclean
34
35        dh_clean
36
37install: DH_OPTIONS=
38install: build
39        dh_testdir
40        dh_testroot
41        dh_clean -k
42        dh_installdirs
43
44        $(MAKE) prefix=`pwd`/debian/tmp/usr install
45
46        dh_movefiles
47
48# This single target is used to build all the packages, all at once, or
49# one at a time. So keep in mind: any options passed to commands here will
50# affect _all_ packages. Anything you want to only affect one package
51# should be put in another target, such as the install target.
52binary-common: build install
53        dh_testdir
54        dh_testroot
55#       dh_installdebconf
56        dh_installdocs
57        rm -rf debian/tmp/usr/doc
58        dh_installexamples
59        dh_installmenu
60#       dh_installemacsen
61#       dh_installpam
62#       dh_installmime
63#       dh_installinit
64#       dh_installcron
65        gzip -9 debian/tmp/usr/share/man/man1/*
66        mkdir -p debian/survex-aven/usr/share/man/man1
67        mv debian/tmp/usr/share/man/man1/aven.1.gz debian/survex-aven/usr/share/man/man1
68#       dh_installinfo
69#       dh_undocumented
70        dh_installchangelogs
71        dh_link
72        dh_strip
73        dh_compress
74        dh_fixperms
75#       dh_suidregister
76#       dh_makeshlibs
77        dh_installdeb
78#       dh_perl
79        dh_shlibdeps
80        dh_gencontrol
81        dh_md5sums
82        dh_builddeb
83
84# Build architecture independant packages using the common target.
85binary-indep:
86# (Uncomment this next line if you have such packages.)
87#        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
88
89# Build architecture dependant packages using the common target.
90binary-arch:
91        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
92
93# Any other binary targets build just one binary package at a time.
94binary-%: build install
95        make -f debian/rules binary-common DH_OPTIONS=-p$*
96
97binary: binary-indep binary-arch
98.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.