Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
•1 srcdir = .
2
3 CC?=gcc
4 CFLAGS?= -O2 -s
5
6 prefix=/usr/local
7 DATADIR=`xboard --show-config Datadir`
8
9 ALL= crazywa crazywa.6.gz
10
11 all: ${ALL}
12
13 crazywa: dropper.c
14 $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ -o $@
15
16 install: ${ALL}
17 install -d -m0755 $(DESTDIR)$(prefix)/games
18 cp -u ${srcdir}/crazywa $(DESTDIR)$(prefix)/games
19 install -d -m0755 $(DESTDIR)$(prefix)/share/man/man6
20 cp -u ${srcdir}/crazywa.6.gz $(DESTDIR)$(prefix)/share/man/man6
21
22 crazywa.6.gz: crazywa.pod
23 pod2man -s 6 crazywa.pod | gzip -9n > crazywa.6.gz
24
25 clean:
26 rm -f ${ALL} *.o
27
28 dist-clean:
29 rm -f ${ALL} *~ md5sums
30
31 dist:
32 REV=$(git describe --tags); \
33 git archive --prefix=crazywa-$REV/ --format=tar.gz -o crazywa-$REV.tar.gz HEAD
34
35 uninstall:
36 rm -f $(DESTDIR)$(prefix)/share/man/man6/crazywa.6.gz
37 rm -f $(DESTDIR)$(prefix)/games/crazywa