File: rules

package info (click to toggle)
automake1.11 1:1.11.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,276 kB
  • sloc: sh: 35,059; perl: 10,697; makefile: 946; ansic: 496
file content (36 lines) | stat: -rwxr-xr-x 1,065 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

package=automake1.11
version=1.11
infodir=doc

%:
	dh $@ --without autoreconf

# Explicitly call configure since old configure doesn't understand
# --runstatedir.
override_dh_auto_configure:
	./configure --build=$(DEB_BUILD_GNU_TYPE) \
		--prefix=/usr --includedir=\$${prefix}/include \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--sysconfdir=/etc --localstatedir=/var --disable-silent-rules \
		--disable-maintainer-mode --disable-dependency-tracking

override_dh_auto_test:
# Don't run the test suite, it's old and fails.

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
# Rebuild the info files                                                       
	cd $(infodir) && makeinfo automake.texi

override_dh_auto_clean:
	dh_auto_clean
	rm -f $(infodir)/automake-$(version).info*