source: git/debian/rules @ 7ad2d31

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 7ad2d31 was 7ad2d31, checked in by Olly Betts <olly@…>, 23 years ago

Run make check as part of the debian build process.

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

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