2 BUILD
= jethro kraut cockney jive nyc ken ky00te newspeak nethackify
3 OTHER
= eleet b1ff chef jibberish upside-down rasterman studly fudd \
4 censor spammer uniencode pirate kenny
6 INSTALL_PROGRAM
= install
8 # DEB_BUILD_OPTIONS suport, to control binary stripping.
9 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
14 ifneq (,$(findstring debug
,$(DEB_BUILD_OPTIONS
)))
18 all: $(OTHER
) $(BUILD
)
20 install: $(BUILD
) $(OTHER
)
21 install -d
$(PREFIX
)/usr
/games
22 $(INSTALL_PROGRAM
) $(BUILD
) $(PREFIX
)/usr
/games
/
23 install $(OTHER
) $(PREFIX
)/usr
/games
/
24 install -d
$(PREFIX
)/usr
/share
/man
/man6
25 install -m
0644 filters
.6 $(PREFIX
)/usr
/share
/man
/man6
26 cd
$(PREFIX
)/usr
/share
/man
/man6
&& \
27 $(foreach prog
,$(BUILD
) $(OTHER
),ln
-s filters
.6 $(prog
).6;)
29 samples
: $(BUILD
) $(OTHER
)
31 PATH
=.
:$$PATH; export PATH
; echo
$(BUILD
) $(OTHER
) |xargs
-n
1 sh makesample.sh
34 $(RM
) -f core
*.o
*~
$(BUILD
) *.c SAMPLES
35 cd ky00te.
dir && make
clean
36 rm -f kraut.
dir/lex.yy.c
37 cd nethackify.
dir && make
clean
44 $(CC
) -o
$@
$*.c
$(CFLAGS
)
56 cd kraut.
dir && lex kraut.l
57 cd kraut.
dir && cc kraut.c
lex.yy.c
-o ..
/kraut
60 cd nethackify.
dir && make