* Added a censor filter.
[filters.git] / Makefile
CommitLineData
36c4fbeb 1LEX = flex
2BUILD = jethro kraut cockney jive nyc ken ky00te newspeak
e99ec255 3OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd censor spammer
36c4fbeb 4CFLAGS = -O2
5INSTALL_PROGRAM = install
6
7# DEB_BUILD_OPTIONS suport, to control binary stripping.
8ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
9INSTALL_PROGRAM += -s
10endif
11
12# And debug building.
13ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
14CFLAGS += -g
15endif
7e3afbba 16
9edc0e61 17all: $(OTHER) $(BUILD)
7e3afbba 18
9edc0e61 19install: $(BUILD) $(OTHER)
7e3afbba 20 install -d $(PREFIX)/usr/games
36c4fbeb 21 $(INSTALL_PROGRAM) $(BUILD) $(PREFIX)/usr/games/
22 install $(OTHER) $(PREFIX)/usr/games/
f49da801 23 install -d $(PREFIX)/usr/share/man/man6
24 install -m 0644 filters.6 $(PREFIX)/usr/share/man/man6
25 cd $(PREFIX)/usr/share/man/man6 && \
9edc0e61 26 $(foreach prog,$(BUILD) $(OTHER),ln -s filters.6 $(prog).6;)
7e3afbba 27
9edc0e61 28samples: $(BUILD) $(OTHER)
f49da801 29 -rm -f SAMPLES
9edc0e61 30 PATH=.:$$PATH; export PATH; echo $(BUILD) $(OTHER) |xargs -n 1 sh makesample.sh
7e3afbba 31
32clean:
9edc0e61 33 $(RM) -f core *.o *~ $(BUILD) *.c SAMPLES
bc19f2cf 34 cd ky00te.dir && make clean
7e3afbba 35
36.SUFFIXES: .l
37
38.l:
39 $(RM) $*.c
40 $(LEX) -t $< > $*.c
36c4fbeb 41 $(CC) -O -o $@ $*.c -lfl $(CFLAGS)
7e3afbba 42 $(RM) $*.c
43
44.SUFFIXES: .dir
45
46.dir:
47 cd $<; make
f49da801 48
bc19f2cf 49ky00te:
50 cd ky00te.dir && make
51
f49da801 52kraut:
53 cd kraut.dir && lex kraut.l
54 cd kraut.dir && cc kraut.c lex.yy.c -o ../kraut
This page took 0.015539 seconds and 4 git commands to generate.