source: git/debian/rules @ 3d3924d

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 3d3924d was dfdc7bd, checked in by Olly Betts <olly@…>, 24 years ago

Minor tweaks to debian build process.

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

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