]> iEval git - filters.git/blame_incremental - Makefile
releasing version 2.39
[filters.git] / Makefile
... / ...
CommitLineData
1LEX = flex
2BUILD = jethro kraut cockney jive nyc ken ky00te newspeak nethackify
3OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd \
4 censor spammer uniencode pirate kenny
5CFLAGS = -O2 -lfl
6INSTALL_PROGRAM = install
7
8# DEB_BUILD_OPTIONS suport, to control binary stripping.
9ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
10INSTALL_PROGRAM += -s
11endif
12
13# And debug building.
14ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
15CFLAGS += -g
16endif
17
18all: $(OTHER) $(BUILD)
19
20install: $(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;)
28
29samples: $(BUILD) $(OTHER)
30 -rm -f SAMPLES
31 PATH=.:$$PATH; export PATH; echo $(BUILD) $(OTHER) |xargs -n 1 sh makesample.sh
32
33clean:
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
38
39.SUFFIXES: .l
40
41.l:
42 $(RM) $*.c
43 $(LEX) -t $< > $*.c
44 $(CC) -o $@ $*.c $(CFLAGS)
45 $(RM) $*.c
46
47.SUFFIXES: .dir
48
49.dir:
50 cd $<; make
51
52ky00te:
53 cd ky00te.dir && make
54
55kraut:
56 cd kraut.dir && lex kraut.l
57 cd kraut.dir && cc kraut.c lex.yy.c -o ../kraut
58
59nethackify:
60 cd nethackify.dir && make
This page took 0.016664 seconds and 4 git commands to generate.