version 0.36 (by Hank Barta)
[FAPG] / Makefile
index 7dbdd60..6e8000f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,29 @@
 PRE = /usr/local
 BIN = $(PRE)/bin
-DOC = $(PRE)/doc/fapg
+DOC = $(PRE)/share/doc/fapg
+MAN = $(PRE)/share/man/man1
+CFLAGS=-Wall -g2 -funsigned-char
 
-fapg:fapg.c
-       gcc -o fapg fapg.c
+fapg: fapg.c
+
+fapg.c:        genres.h
+       touch $@
 
 clean:
        rm -f fapg
 
-install:fapg
-       mkdir -p $(BIN) $(DOC)
+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)
+       cp -f fapg.1 $(MAN)
 
 uninstall:
        rm -f $(BIN)/fapg
        rm -rf $(DOC)
+       rm -f $(MAN)/fapg.1