source: git/debian/rules @ 7213bd1

RELEASE/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 7213bd1 was f980dac, checked in by Olly Betts <olly@…>, 21 years ago

No arch indep package now, so don't try to build one

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@2761 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

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