File: rules

package info (click to toggle)
autoconf 2.69-11
  • links: PTS
  • area: main
  • in suites: buster
  • size: 9,252 kB
  • ctags: 338
  • sloc: sh: 4,436; perl: 3,083; makefile: 481; lisp: 104
file content (35 lines) | stat: -rwxr-xr-x 897 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f
%:
ifeq ($(DEB_BUILD_PROFILE),stage1)
	dh $@ -Nautoconf-doc
else
	dh $@
endif

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) distclean

override_dh_auto_configure:
	# Ensure nothing tries to re-bootstrap Autoconf with itself.
	touch configure `find . -name Makefile.in`
	dh_auto_configure -- EMACS=no --with-lispdir=
	# Force manpages to get rebuilt with correct version number.
	touch man/*.x

override_dh_auto_build:
	dh_auto_build
ifneq ($(DEB_BUILD_PROFILE),stage1)
	$(MAKE) html info pdf ps
endif

override_dh_auto_test:

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
ifneq ($(DEB_BUILD_PROFILE),stage1)
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp \
	    install-html install-info install-pdf install-ps install-man
endif
	perl -pi -e 's/^my \$$VERSION.*/my \$$VERSION = "'"`date`"'";/;' \
	    debian/tmp/usr/share/autoconf/Autom4te/C4che.pm