File: rules

package info (click to toggle)
automake-1.16 1%3A1.16.1-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,048 kB
  • sloc: sh: 57,573; perl: 11,939; makefile: 113; ansic: 9
file content (49 lines) | stat: -rwxr-xr-x 1,221 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
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

package=automake
version=1.16
infodir=doc
source_date = $(shell date -d "@$(SOURCE_DATE_EPOCH)")

%:
	dh $@ --without autoreconf --no-parallel

ifeq ($(DEB_BUILD_PROFILE),stage1)
MAKEINFO=true
export MAKEINFO
endif

override_dh_auto_test:
# Don't run the test suite, too many tests are flaky at the moment

override_dh_auto_configure:
	./bootstrap
	dh_auto_configure
ifneq ($(DEB_BUILD_PROFILE),stage1)
# Touch with SOURCE_DATE_EPOCH so version.texi is generated with a stable
# date.
	touch -d "$(source_date)" doc/automake.texi
endif

override_dh_auto_build:
ifeq ($(DEB_BUILD_PROFILE),stage1)
	touch doc/automake.info
endif
	dh_auto_build

override_dh_auto_install:
	dh_auto_install --destdir=$(CURDIR)/debian/tmp
#  remove automake's versions
	rm -f $(CURDIR)/debian/tmp/usr/share/automake-$(version)/config.sub
	rm -f \
		$(CURDIR)/debian/tmp/usr/share/automake-$(version)/config.guess
ifneq ($(DEB_BUILD_PROFILE),stage1)
# Rebuild the info files                                                       
	cd $(infodir) && makeinfo automake.texi
endif

override_dh_auto_clean:
	[ -f Makefile ] && dh_auto_clean || true
	rm -f $(infodir)/automake-$(version).info*