File: process

package info (click to toggle)
frotz 2.40-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 468 kB
  • ctags: 891
  • sloc: ansic: 6,774; makefile: 143; sh: 63
file content (43 lines) | stat: -rw-r--r-- 1,313 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
#! /usr/bin/make -f

docdir = $(ROOT)/usr/share/doc

#DEBUGOPT = -g

DEB_HOST_GNU_SYSTEM = $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)

ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
SOUND_DEFS := -DOSS_SOUND
else
SOUND_DEFS := 
endif

build:
	make CONFIG_DIR="/etc" PREFIX="/usr" \
	     SOUND_DEFS="$(SOUND_DEFS)" COLOR_DEFS="-DCOLOR_SUPPORT" \
	     OPTS="-O2 $(DEBUGOPT) -DMAX_FILE_NAME=512 -DTEXT_BUFFER_SIZE=500"
	sed 's/^[^#]/#&/' < frotz.conf-big > frotz.conf

install-frotz:
	install -d $(ROOT)/usr/games
	install -m 755 -s frotz $(ROOT)/usr/games/frotz
	install -d $(ROOT)/usr/share/man/man6
	install -m 644 frotz.6 $(ROOT)/usr/share/man/man6
	install -d $(ROOT)/etc
	install -m 644 frotz.conf $(ROOT)/etc
	echo /etc/frotz.conf >> $(ROOT)/DEBIAN/conffiles
	install -d $(docdir)/frotz
	install -m 644 AUTHORS BUGS HOW_TO_PLAY README TODO $(docdir)/frotz
	install -m 644 debian/INSTALL.clip $(docdir)/frotz/INSTALLING.GAMES
	install -m 644 ChangeLog $(docdir)/frotz/changelog
	install -m 644 debian/changelog $(docdir)/frotz/changelog.Debian
	gzip -9n $(docdir)/*/* $(ROOT)/usr/share/man/man?/*
	install -m 644 debian/copyright $(docdir)/frotz
	install -m 755 debian/postinst debian/prerm $(ROOT)/DEBIAN

finalise-frotz:
	dpkg-shlibdeps -pfrotz $(ROOT)/usr/games/frotz

clean:
	rm -f frotz.conf
	make distclean