File: rules

package info (click to toggle)
unzip 5.32-1
  • links: PTS
  • area: non-free
  • in suites: hamm, slink
  • size: 3,616 kB
  • ctags: 5,353
  • sloc: ansic: 35,010; cpp: 3,775; makefile: 1,269; asm: 1,113; sh: 133
file content (49 lines) | stat: -rwxr-xr-x 1,250 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

package = unzip
dtudp = debian/tmp/usr/doc/$(package)

build:
	$(checkdir)
	make -f unix/Makefile CF="-O2 -I." LDFLAGS="-s" unzips
	touch build

clean:
	$(checkdir)
	-rm -f build
	-make -f unix/Makefile clean
	-rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars

binary-indep: checkroot build
	$(checkdir)

binary-arch: checkroot build
	$(checkdir)
	-rm -rf debian/tmp
	install -d debian/tmp/DEBIAN
	cd debian/tmp && install -d usr/doc/$(package) usr/bin usr/man/man1
	make -f unix/Makefile install prefix=`pwd`/debian/tmp/usr
	cat debian/copyright.in COPYING > $(dtudp)/copyright
	cp debian/changelog $(dtudp)/changelog.Debian
	cp -p History.* BUGS ToDo debian/email-from-greg $(dtudp)
	cd $(dtudp) && gzip -9 changelog.Debian History.*
	ln -s History.532.gz $(dtudp)/changelog.gz
	gzip -r9 debian/tmp/usr/man
	dpkg-shlibdeps unzip
	dpkg-gencontrol
	cd debian/tmp && md5sum `find * -type f ! -regex "DEBIAN/.*"` >DEBIAN/md5sums
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..

define checkdir
	test -f $(package).c -a -f debian/rules
endef

binary: binary-indep binary-arch

checkroot:
	$(checkdir)
	test root = "`whoami`"

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