Also close bug
[filters.git] / Makefile
CommitLineData
36c4fbeb 1LEX = flex
101d92af 2BUILD = jethro kraut cockney jive nyc ken ky00te newspeak nethackify scramble
32a7bed8 3OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd \
89c1b3d2 4 censor spammer uniencode pirate kenny scottish fanboy LOLCAT
ef230639
MG
5ifndef CFLAGS
6CFLAGS = -O2
7endif
8CFLAGS += $(CPPFLAGS)
97882278 9export CFLAGS
36c4fbeb 10INSTALL_PROGRAM = install
11
12# DEB_BUILD_OPTIONS suport, to control binary stripping.
13ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
14INSTALL_PROGRAM += -s
15endif
16
e4761fb9 17all: $(OTHER) $(BUILD)
7e3afbba 18
9edc0e61 19install: $(BUILD) $(OTHER)
9640714e
JH
20 install -d $(DESTDIR)/usr/games
21 $(INSTALL_PROGRAM) $(BUILD) $(DESTDIR)/usr/games/
22 install $(OTHER) $(DESTDIR)/usr/games/
23 install -d $(DESTDIR)/usr/share/man/man6
24 install -m 0644 filters.6 $(DESTDIR)/usr/share/man/man6
25 cd $(DESTDIR)/usr/share/man/man6 && \
9edc0e61 26 $(foreach prog,$(BUILD) $(OTHER),ln -s filters.6 $(prog).6;)
7e3afbba 27
7e3afbba 28clean:
e4761fb9 29 $(RM) -f core *.o *~ $(BUILD)
bc19f2cf 30 cd ky00te.dir && make clean
7e3afbba 31
32.SUFFIXES: .l
33
34.l:
35 $(RM) $*.c
36 $(LEX) -t $< > $*.c
ef230639 37 $(CC) -o $@ $*.c $(CFLAGS) -lfl $(LDFLAGS)
7e3afbba 38 $(RM) $*.c
39
40.SUFFIXES: .dir
41
ef230639 42.dir:
7e3afbba 43 cd $<; make
f49da801 44
846aed59 45nethackify: nethackify.c
027a0762 46scramble: scramble.c
This page took 0.013666 seconds and 4 git commands to generate.