* Patch from Seneca <seneca-cunningham@rogers.com> to correct newspeak's
[filters.git] / Makefile
CommitLineData
7e3afbba 1# Various dialect translators.
2
3LEX = flex
4
9edc0e61 5BUILD = jethro kraut cockney jive nyc ken ky00te newspeak
3d820e1a 6OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd
7e3afbba 7
9edc0e61 8all: $(OTHER) $(BUILD)
7e3afbba 9
9edc0e61 10install: $(BUILD) $(OTHER)
7e3afbba 11 install -d $(PREFIX)/usr/games
9edc0e61 12 install $(BUILD) $(OTHER) $(PREFIX)/usr/games/
f49da801 13 install -d $(PREFIX)/usr/share/man/man6
14 install -m 0644 filters.6 $(PREFIX)/usr/share/man/man6
15 cd $(PREFIX)/usr/share/man/man6 && \
9edc0e61 16 $(foreach prog,$(BUILD) $(OTHER),ln -s filters.6 $(prog).6;)
7e3afbba 17
9edc0e61 18samples: $(BUILD) $(OTHER)
f49da801 19 -rm -f SAMPLES
9edc0e61 20 PATH=.:$$PATH; export PATH; echo $(BUILD) $(OTHER) |xargs -n 1 sh makesample.sh
7e3afbba 21
22clean:
9edc0e61 23 $(RM) -f core *.o *~ $(BUILD) *.c SAMPLES
bc19f2cf 24 cd ky00te.dir && make clean
7e3afbba 25
26.SUFFIXES: .l
27
28.l:
29 $(RM) $*.c
30 $(LEX) -t $< > $*.c
31 $(CC) -O -o $@ $*.c -lfl -g
32# strip $@
33 $(RM) $*.c
34
35.SUFFIXES: .dir
36
37.dir:
38 cd $<; make
f49da801 39
bc19f2cf 40ky00te:
41 cd ky00te.dir && make
42
f49da801 43kraut:
44 cd kraut.dir && lex kraut.l
45 cd kraut.dir && cc kraut.c lex.yy.c -o ../kraut
This page took 0.01365 seconds and 4 git commands to generate.