~ubuntu-branches/ubuntu/hoary/filters/hoary

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2004-11-06 13:37:51 UTC
  • mfrom: (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041106133751-x4y6g4fce1g75f0n
Tags: 2.34
* Add uniencode filter. Because υɳіϲоⅾе is fun.
* Fix filters man page to escape hyphens. Because υɳіϲоⅾе is fun.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Various dialect translators.
2
 
 
3
 
LEX      = flex
4
 
 
5
 
BUILD    = jethro kraut cockney jive nyc ken ky00te newspeak
6
 
OTHER    = eleet b1ff chef jibberish upside-down rasterman studly fudd
 
1
LEX     = flex
 
2
BUILD   = jethro kraut cockney jive nyc ken ky00te newspeak
 
3
OTHER   = eleet b1ff chef jibberish upside-down rasterman studly fudd censor spammer uniencode
 
4
CFLAGS  = -O2 -lfl
 
5
INSTALL_PROGRAM = install
 
6
 
 
7
# DEB_BUILD_OPTIONS suport, to control binary stripping.
 
8
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
9
INSTALL_PROGRAM += -s
 
10
endif
 
11
 
 
12
# And debug building.
 
13
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
14
CFLAGS += -g
 
15
endif
7
16
 
8
17
all:    $(OTHER) $(BUILD)
9
18
 
10
19
install:        $(BUILD) $(OTHER)
11
20
        install -d $(PREFIX)/usr/games
12
 
        install $(BUILD) $(OTHER) $(PREFIX)/usr/games/
 
21
        $(INSTALL_PROGRAM) $(BUILD) $(PREFIX)/usr/games/
 
22
        install $(OTHER) $(PREFIX)/usr/games/
13
23
        install -d $(PREFIX)/usr/share/man/man6
14
24
        install -m 0644 filters.6 $(PREFIX)/usr/share/man/man6
15
25
        cd $(PREFIX)/usr/share/man/man6 && \
22
32
clean:
23
33
        $(RM) -f core *.o *~ $(BUILD) *.c SAMPLES
24
34
        cd ky00te.dir && make clean
 
35
        rm -f kraut.dir/lex.yy.c
25
36
 
26
37
.SUFFIXES: .l
27
38
 
28
39
.l:
29
40
        $(RM) $*.c
30
41
        $(LEX) -t $< > $*.c
31
 
        $(CC) -O -o $@ $*.c -lfl -g
32
 
#       strip $@
 
42
        $(CC) -o $@ $*.c $(CFLAGS)
33
43
        $(RM) $*.c
34
44
 
35
45
.SUFFIXES: .dir