Also close bug
[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
5ifndef CFLAGS
6CFLAGS = -O2
7endif
8CFLAGS += $(CPPFLAGS)
9export CFLAGS
10INSTALL_PROGRAM = install
11
12# DEB_BUILD_OPTIONS suport, to control binary stripping.
13ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
14INSTALL_PROGRAM += -s
15endif
16
17all: $(OTHER) $(BUILD)
18
19install: $(BUILD) $(OTHER)
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 && \
26 $(foreach prog,$(BUILD) $(OTHER),ln -s filters.6 $(prog).6;)
27
28clean:
29 $(RM) -f core *.o *~ $(BUILD)
30 cd ky00te.dir && make clean
31
32.SUFFIXES: .l
33
34.l:
35 $(RM) $*.c
36 $(LEX) -t $< > $*.c
37 $(CC) -o $@ $*.c $(CFLAGS) -lfl $(LDFLAGS)
38 $(RM) $*.c
39
40.SUFFIXES: .dir
41
42.dir:
43 cd $<; make
44
45nethackify: nethackify.c
46scramble: scramble.c
This page took 0.00826 seconds and 4 git commands to generate.