File: rules

package info (click to toggle)
infocom 4.01pl2-5
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 508 kB
  • ctags: 991
  • sloc: ansic: 8,228; makefile: 209
file content (59 lines) | stat: -rwxr-xr-x 1,551 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
52
53
54
55
56
57
58
59
#!/usr/bin/make -f
# Sample debian/rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)

package	:= infocom


build:
	$(checkdir)
	-rm -f *.o
	$(MAKE) sysv_ansic CFLAGS=-O2
	mv infocom infocoma
	-rm -f *.o
	$(MAKE) sysv_curses CFLAGS=-O2
	strip infocom infocoma
	$(MAKE) .infocomrc
	touch build


clean:
	$(checkdir)
	-rm -f build infocom infocoma
	-$(MAKE) -i clean
	-rm -rf debian/tmp *~


binary: binary-arch binary-indep

binary-indep: build

binary-arch: build
	-rm -rf debian/tmp
	mkdir -p debian/tmp/DEBIAN
	mkdir -p debian/tmp/usr/games
	mkdir -p debian/tmp/usr/doc/$(package)
	mkdir -p debian/tmp/usr/lib/games/$(package)
	install -m755 infocom infocoma debian/tmp/usr/games/
	install -m444 debian/README debian/tmp/usr/doc/$(package)/copyright
	install -m444 README debian/tmp/usr/doc/$(package)/
	install -m444 .infocomrc debian/tmp/usr/lib/games/$(package)/user.infocomrc
	install -m444 debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian
	-chmod 644 *.z?
	-cp *.z? debian/tmp/usr/lib/games/infocom
	strip debian/tmp/usr/games/*
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg-shlibdeps debian/tmp/usr/games/*
	dpkg-gencontrol -is -ip
	dpkg --build debian/tmp
	dpkg-name -o -s .. debian/tmp.deb


define checkdir
	test -f $(package).c
endef