File: rules

package info (click to toggle)
automake-1.14 1%3A1.14.1-4%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 13,176 kB
  • ctags: 705
  • sloc: sh: 57,794; perl: 11,754; pascal: 644; makefile: 104; ansic: 9
file content (35 lines) | stat: -rwxr-xr-x 841 bytes parent folder | download | duplicates (2)
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

package=automake
version=1.14
infodir=doc

%:
	dh $@

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

override_dh_auto_build:
ifeq ($(DEB_BUILD_PROFILE),stage1)
	touch doc/automake.info
endif
	touch aclocal.m4 Makefile.in  # Needed by 02-init-m4-newline.diff
	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*