File: rules

package info (click to toggle)
miscutils 999.0-4.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 24 kB
  • ctags: 3
  • sloc: makefile: 32; sh: 12
file content (51 lines) | stat: -rwxr-xr-x 1,292 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
50
51
#!/usr/bin/make -f
# Copyright 1996 by Kevin Dalley, base upon many other files
#


package = miscutils

build:
	$(checkdir)
	touch build

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

binary-indep:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp
	install -d debian/tmp debian/tmp/DEBIAN
	install -d debian/tmp/usr/share/doc/$(package)
	install -m 644 -o root -g root debian/copyright debian/tmp/usr/share/doc/$(package)/.
	install -m 644 -o root -g root debian/changelog debian/tmp/usr/share/doc/$(package)/changelog.Debian
	gzip -9v debian/tmp/usr/share/doc/$(package)/changelog.Debian
	install -m 755 -g root -o root debian/prerm debian/tmp/DEBIAN/
	install -m 755 -g root -o root debian/postinst debian/tmp/DEBIAN/
	dpkg-gencontrol -isp
	dpkg --build debian/tmp ..

binary-arch:	checkroot build
	$(checkdir)
# There are no architecture-dependent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary:		binary-indep binary-arch

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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

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