Fix UTF-8 handling in uniencode (Closes: #508003)
[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
9640714e 19all: $(OTHER) $(BUILD) samples
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
9edc0e61 30samples: $(BUILD) $(OTHER)
f49da801 31 -rm -f SAMPLES
101d92af 32 PATH=.:$$PATH; export PATH; echo $(BUILD) $(OTHER) | xargs -n 1 sh makesample.sh
7e3afbba 33
34clean:
101d92af 35 $(RM) -f core *.o *~ $(BUILD) SAMPLES
bc19f2cf 36 cd ky00te.dir && make clean
5b25ff5f 37 cd nethackify.dir && make clean
7e3afbba 38
39.SUFFIXES: .l
40
41.l:
42 $(RM) $*.c
43 $(LEX) -t $< > $*.c
027a0762 44 $(CC) -o $@ $*.c $(CFLAGS) -lfl
7e3afbba 45 $(RM) $*.c
46
47.SUFFIXES: .dir
48
49.dir:
50 cd $<; make
f49da801 51
bc19f2cf 52ky00te:
53 cd ky00te.dir && make
54
5b25ff5f 55nethackify:
56 cd nethackify.dir && make
101d92af 57
027a0762 58scramble: scramble.c
This page took 0.01392 seconds and 4 git commands to generate.