Remove SAMPLES file for deterministic builds.
[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
027a0762 5CFLAGS = -O2
97882278 6export CFLAGS
36c4fbeb 7INSTALL_PROGRAM = install
8
9# DEB_BUILD_OPTIONS suport, to control binary stripping.
10ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
11INSTALL_PROGRAM += -s
12endif
13
14# And debug building.
15ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
16CFLAGS += -g
17endif
7e3afbba 18
e4761fb9 19all: $(OTHER) $(BUILD)
7e3afbba 20
9edc0e61 21install: $(BUILD) $(OTHER)
9640714e
JH
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 && \
9edc0e61 28 $(foreach prog,$(BUILD) $(OTHER),ln -s filters.6 $(prog).6;)
7e3afbba 29
7e3afbba 30clean:
e4761fb9 31 $(RM) -f core *.o *~ $(BUILD)
bc19f2cf 32 cd ky00te.dir && make clean
7e3afbba 33
34.SUFFIXES: .l
35
36.l:
37 $(RM) $*.c
38 $(LEX) -t $< > $*.c
027a0762 39 $(CC) -o $@ $*.c $(CFLAGS) -lfl
7e3afbba 40 $(RM) $*.c
41
42.SUFFIXES: .dir
43
44.dir:
45 cd $<; make
f49da801 46
bc19f2cf 47ky00te:
48 cd ky00te.dir && make
49
846aed59 50nethackify: nethackify.c
027a0762 51scramble: scramble.c
This page took 0.014297 seconds and 4 git commands to generate.