2 BUILD
= jethro kraut cockney jive nyc ken ky00te newspeak nethackify scramble
3 OTHER
= eleet b1ff chef jibberish upside-down rasterman studly fudd \
4 censor spammer uniencode pirate kenny scottish fanboy LOLCAT
7 INSTALL_PROGRAM
= install
9 # DEB_BUILD_OPTIONS suport, to control binary stripping.
10 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
15 ifneq (,$(findstring debug
,$(DEB_BUILD_OPTIONS
)))
19 all: $(OTHER
) $(BUILD
) samples
21 install: $(BUILD
) $(OTHER
)
22 install -d
$(DESTDIR
)/usr
/games
23 $(INSTALL_PROGRAM
) $(BUILD
) $(DESTDIR
)/usr
/games
/
24 install $(OTHER
) $(DESTDIR
)/usr
/games
/
25 install -d
$(DESTDIR
)/usr
/share
/man
/man6
26 install -m
0644 filters
.6 $(DESTDIR
)/usr
/share
/man
/man6
27 cd
$(DESTDIR
)/usr
/share
/man
/man6
&& \
28 $(foreach prog
,$(BUILD
) $(OTHER
),ln
-s filters
.6 $(prog
).6;)
30 samples
: $(BUILD
) $(OTHER
)
32 PATH
=.
:$$PATH; export PATH
; echo
$(BUILD
) $(OTHER
) | xargs
-n
1 sh makesample.sh
35 $(RM
) -f core
*.o
*~
$(BUILD
) SAMPLES
36 cd ky00te.
dir && make
clean
37 rm -f kraut.
dir/lex.yy.c
38 cd nethackify.
dir && make
clean
39 cd scramble.
dir && make
clean
46 $(CC
) -o
$@
$*.c
$(CFLAGS
)
58 cd kraut.
dir && lex kraut.l
59 cd kraut.
dir && $(CC
) kraut.c
lex.yy.c
-o ..
/kraut
62 cd nethackify.
dir && make
65 cd scramble.
dir && make