1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
#!/usr/bin/make -f
# Model by Ian Jackson.
# Debhelper model by Joey Hess.
# Autoconf details by Ben Pfaff.
# Released under the GNU GPL.
SHELL = /bin/bash
# This makes sure that [a-z]*.1 does not match ChangeLog.1 (Bug #801885).
export LC_ALL = C
build-indep build: build-stamp
build-stamp:
dh_testdir
AWK=awk ./configure --prefix=/usr --program-suffix=2.13
$(MAKE) CFLAGS=-O2 LDFLAGS=-s
makeinfo --html --no-split autoconf.texi
touch build-stamp
build-arch:
clean:
dh_testdir
dh_testroot
[ ! -f Makefile ] || $(MAKE) distclean
rm -f autoconf.info
rm -f autoconf.html
rm -f *.m4f
dh_clean
D = debian/autoconf2.13
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) CFLAGS=-O2 LDFLAGS=-s prefix=$D/usr datadir=$D/usr/share infodir=$D/usr/share/info install
rm -f $D/usr/{share/,}info/{standards*.info*,maintain*.info*}
export DH_OPTIONS
M = $D/usr/share/man/man1
binary-indep: DH_OPTIONS = -pautoconf2.13
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
install -d $M
cp [a-z]*.1 $M
for d in auto{{re,}conf,scan,update,header} ifnames; do \
mv $D/usr/share/man/man1/$${d}{,2.13}.1; \
done
install -d $D/etc/autoconf2.13
mv $D/usr/share/autoconf2.13/acconfig.h $D/etc/autoconf2.13/acconfig.h
mv $D/usr/share/info/autoconf{,2.13}.info
dh_lintian
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: build install
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|