Git

b1c192ad0135219218fca3d207e5d15b6206d29d
1 PRE = /usr/local
2 BIN = $(PRE)/bin
3 DOC = $(PRE)/share/doc/fapg
4 MAN = $(PRE)/share/man/man1
5 CFLAGS=-g2 -funsigned-char
7 fapg: fapg.c
9 fapg.c: genres.h
10         touch $@
12 clean:
13         rm -f fapg
15 beautify:
16         indent -nut -kr -ncs -nsaf -npcs -nsai -nsaw -o fapg.good.c fapg.c &&\
17         mv fapg.good.c fapg.c
18         splint -checks fapg.c
20 install: fapg
21         mkdir -p $(BIN) $(DOC) $(MAN)
22         cp -f fapg $(BIN)
23         cp -f COPYING README $(DOC)
24         cp -f fapg.1 $(MAN)
26 uninstall:
27         rm -f $(BIN)/fapg
28         rm -rf $(DOC)
29         rm -f $(MAN)/fapg.1