File: rules

package info (click to toggle)
autoconf2.64 2.64%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 4,520 kB
  • sloc: sh: 4,283; perl: 3,510; makefile: 406; lisp: 104
file content (55 lines) | stat: -rwxr-xr-x 1,150 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f

configure-stamp:
	dh_testdir
	CONFIG_SHELL=/bin/bash \
	bash ./configure --prefix=/usr --datadir=/usr/share \
	  --mandir=/usr/share/man --infodir=/usr/share/info \
	  --program-suffix=2.64
	touch $@

build-arch: build
build-indep: build
build: build-stamp
build-stamp: configure-stamp
	dh_testdir
	$(MAKE) pkgdatadir="/usr/share/autoconf2.64"
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f configure-stamp build-stamp
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean

D = debian/autoconf2.64
install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) DESTDIR=$(CURDIR)/$(D) install
	mv $(D)/usr/share/autoconf $(D)/usr/share/autoconf2.64
	#find $(D) -type f | xargs \
	#  sed -r 's;/usr/share/autoconf;/usr/share/autoconf2.64;g' -i
	rm -rf $(D)/usr/share/info

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: configure build clean binary-indep binary-arch binary install