source: git/debian/rules @ 6df03c1

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 6df03c1 was b4fe9fb, checked in by Olly Betts <olly@…>, 22 years ago

Merged changes with 1.0 branch.

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

  • Property mode set to 100755
File size: 2.5 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_installmime
75        gzip -9 debian/tmp/usr/share/man/man1/*
76        dh_installchangelogs
77        dh_link
78        dh_strip
79        dh_compress
80        dh_fixperms
81#       dh_makeshlibs
82        dh_installdeb
83#       dh_perl
84        dh_shlibdeps
85        dh_gencontrol
86        dh_md5sums
87        dh_builddeb
88
89# Build architecture independant packages using the common target.
90binary-indep:
91        $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
92
93# Build architecture dependant packages using the common target.
94binary-arch:
95        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
96
97# Any other binary targets build just one binary package at a time.
98binary-%: build install
99        make -f debian/rules binary-common DH_OPTIONS=-p$*
100
101binary: binary-indep binary-arch
102.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.