File: rules

package info (click to toggle)
autoconf 2.72-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,804 kB
  • sloc: sh: 5,553; perl: 3,933; makefile: 123; lisp: 104
file content (40 lines) | stat: -rwxr-xr-x 963 bytes parent folder | download
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
#!/usr/bin/make -f
%:
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
	dh $@ -Nautoconf-doc
else
	dh $@
endif

# Ensure texlive respects SOURCE_DATE_EPOCH
export FORCE_SOURCE_DATE=1

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= SHELL=/bin/sh
	# Force manpages to get rebuilt with correct version number.
	touch man/*.x

override_dh_auto_build:
	dh_auto_build
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
	dh_auto_build -Nautoconf-doc
else
	dh_auto_build
endif

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp \
		install-html install-info install-pdf install-ps install-man
endif

override_dh_auto_test:

override_dh_missing:
	dh_missing --list-missing