source: git/debian/rules @ 6adf7a6d

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 6adf7a6d was 70d428e, checked in by Olly Betts <olly@…>, 24 years ago

Added files needed to build .deb.

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

  • Property mode set to 100755
File size: 2.4 KB
Line 
1#!/usr/bin/make -f
2# Sample debian/rules that uses debhelper.
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        # Need this version of debhelper for DH_OPTIONS to work.
52        dh_testversion 1.1.17
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.