source: git/debian/rules @ b5a3219

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 b5a3219 was 577f05b, checked in by Olly Betts <olly@…>, 22 years ago

Updated debian packaging to build survex1.1 package.

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

  • Property mode set to 100755
File size: 2.6 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 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        # need to use GCC 3.2 to link against wxgtk-2.4
34        ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-docdir=\$${prefix}/share/doc/survex1.1 CFLAGS=$(CFLAGS) STRIP=$(STRIP) CC=gcc-3.2 CXX=g++-3.2 --datadir=/usr/share/survex1.1 --program-suffix=-1.1
35        $(MAKE)
36ifeq    ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
37        $(MAKE) check
38endif
39        touch build-stamp
40
41clean:
42        dh_testdir
43        dh_testroot
44        rm -f build-stamp
45
46        -$(MAKE) distclean
47
48        dh_clean
49
50install: DH_OPTIONS=
51install: build
52        dh_testdir
53        dh_testroot
54        dh_clean -k
55        dh_installdirs
56
57        $(MAKE) prefix=`pwd`/debian/tmp/usr install
58
59        dh_movefiles
60
61# This single target is used to build all the packages, all at once, or
62# one at a time. So keep in mind: any options passed to commands here will
63# affect _all_ packages. Anything you want to only affect one package
64# should be put in another target, such as the install target.
65binary-common: build install
66        dh_testdir
67        dh_testroot
68#       dh_installdebconf
69        dh_installdocs
70        rm -rf debian/tmp/usr/doc
71        dh_installexamples
72        dh_installmenu
73#       dh_installemacsen
74#       dh_installpam
75#       dh_installmime
76#       dh_installinit
77#       dh_installcron
78        gzip -9 debian/tmp/usr/share/man/man1/*
79#       dh_installinfo
80#       dh_undocumented
81        dh_installchangelogs
82        dh_link
83        dh_strip
84        dh_compress
85        dh_fixperms
86#       dh_suidregister
87#       dh_makeshlibs
88        dh_installdeb
89#       dh_perl
90        dh_shlibdeps
91        dh_gencontrol
92        dh_md5sums
93        dh_builddeb
94
95# Build architecture independant packages using the common target.
96binary-indep:
97        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
98
99# Build architecture dependant packages using the common target.
100binary-arch:
101        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
102
103# Any other binary targets build just one binary package at a time.
104binary-%: build install
105        make -f debian/rules binary-common DH_OPTIONS=-p$*
106
107binary: binary-indep binary-arch
108.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.