File: rules

package info (click to toggle)
autoconf-archive 20060312-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,180 kB
  • ctags: 13
  • sloc: sh: 455; makefile: 44
file content (49 lines) | stat: -rwxr-xr-x 1,329 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

D = debian/autoconf-archive
LTO = usr/share/lintian/overrides
LDO = usr/share/linda/overrides

testdir  = test -d m4src && test -f debian/rules
testroot = test x`whoami` = xroot

clean:
	$(testdir)
	rm -f debian/files
	rm -rf $(D)

build:

binary: binary-indep

binary-arch:

binary-indep:
	$(testdir)
	$(testroot)
	rm -fr $(D)

	mkdir -p $(D)/usr/share/doc/autoconf-archive
	cp -pR m4src $(D)/usr/share/autoconf-archive
	cp -pR htmldoc $(D)/usr/share/doc/autoconf-archive
	ln -s ../../autoconf-archive $(D)/usr/share/doc/autoconf-archive/m4source
	cp -p AUTHORS README debian/copyright $(D)/usr/share/doc/autoconf-archive
	cp -p debian/changelog $(D)/usr/share/doc/autoconf-archive/changelog.Debian
	gzip -9n $(D)/usr/share/doc/autoconf-archive/changelog.Debian

	mkdir -p $(D)/$(LTO)
	cp debian/autoconf-archive.lintian $(D)/$(LTO)/autoconf-archive
	mkdir -p $(D)/$(LDO)
	cp debian/autoconf-archive.linda $(D)/$(LDO)/autoconf-archive

	mkdir $(D)/DEBIAN
	cp -p debian/control $(D)/DEBIAN
	cd $(D) && find usr -type f -print0 | xargs -0 md5sum > DEBIAN/md5sums

	dpkg-gencontrol -isp -pautoconf-archive -P$(D)
	chown -R root:root $(D)
	find $(D) -type d -print0 | xargs -0 chmod 0755
	find $(D) -type f -print0 | xargs -0 chmod 0644
	dpkg --build $(D) ..

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