Remove SAMPLES file for deterministic builds.
[filters.git] / Makefile
... / ...
CommitLineData
1LEX = flex
2BUILD = jethro kraut cockney jive nyc ken ky00te newspeak nethackify scramble
3OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd \
4 censor spammer uniencode pirate kenny scottish fanboy LOLCAT
5CFLAGS = -O2
6export CFLAGS
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
18
19all: $(OTHER) $(BUILD)
20
21install: $(BUILD) $(OTHER)
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 && \
28 $(foreach prog,$(BUILD) $(OTHER),ln -s filters.6 $(prog).6;)
29
30clean:
31 $(RM) -f core *.o *~ $(BUILD)
32 cd ky00te.dir && make clean
33
34.SUFFIXES: .l
35
36.l:
37 $(RM) $*.c
38 $(LEX) -t $< > $*.c
39 $(CC) -o $@ $*.c $(CFLAGS) -lfl
40 $(RM) $*.c
41
42.SUFFIXES: .dir
43
44.dir:
45 cd $<; make
46
47ky00te:
48 cd ky00te.dir && make
49
50nethackify: nethackify.c
51scramble: scramble.c
This page took 0.009391 seconds and 4 git commands to generate.