File: rules

package info (click to toggle)
junior-games-net 1.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 20 kB
  • ctags: 4
  • sloc: makefile: 28
file content (41 lines) | stat: -rwxr-xr-x 894 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
#! /usr/bin/make -f

package = junior-games-net
SHELL = /bin/sh

build:
	$(checkdir)

clean:
	$(checkdir)
	$(RM) -r debian/{tmp*,files*} $(package)*
	find . -name '*~' -print0 | xargs -0 rm -f

binary-indep:	checkroot build
	$(checkdir)
	-rm -rf debian/tmp
	install -d debian/tmp/DEBIAN debian/tmp/usr/share/doc/$(package)
	install -m644 debian/changelog debian/tmp/usr/share/doc/$(package)
	gzip -9 debian/tmp/usr/share/doc/$(package)/changelog
	install -m644 debian/copyright debian/tmp/usr/share/doc/$(package)
	install -m644 debian/README.Debian debian/tmp/usr/share/doc/$(package)
	dpkg-gencontrol -isp
	dpkg --build debian/tmp ..

binary-arch:	checkroot build
	$(checkdir)

define checkdir
	test -f debian/rules
endef

binary:	binary-indep

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

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

# Local Variables:
# mode:Makefile