version 0.38 (by Jonny Bijlsma)
[FAPG] / Makefile
index 990ae9c..b1c192a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,14 +2,22 @@ PRE = /usr/local
 BIN = $(PRE)/bin
 DOC = $(PRE)/share/doc/fapg
 MAN = $(PRE)/share/man/man1
+CFLAGS=-g2 -funsigned-char
 
-fapg:fapg.c genres.h
-       gcc -Wall -o fapg fapg.c
+fapg: fapg.c
+
+fapg.c:        genres.h
+       touch $@
 
 clean:
        rm -f fapg
 
-install:fapg
+beautify:
+       indent -nut -kr -ncs -nsaf -npcs -nsai -nsaw -o fapg.good.c fapg.c &&\
+       mv fapg.good.c fapg.c
+       splint -checks fapg.c
+
+install: fapg
        mkdir -p $(BIN) $(DOC) $(MAN)
        cp -f fapg $(BIN)
        cp -f COPYING README $(DOC)