Better project documentation.
[super-star-trek.git] / makefile
index 59efa674f7b46fc22e82dee0689d894ce571d04a..b459f7e8f9d40c6aeeacd163dabc60c54a2d3bb6 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-CFLAGS=     -O
+CFLAGS=     -O -g
 
 .c.o:
        $(CC) $(CFLAGS) -c $<
@@ -7,11 +7,18 @@ OFILES=     sst.o finish.o reports.o setup.o linux.o moving.o battle.o events.o
 
 HFILES=     sst.h
 
+all: sst sst.doc
+
 sst:  $(OFILES)
        gcc  -o sst $(OFILES) -lm
 
 $(OFILES):  $(HFILES)
 
+sst-doc.txt: sst-doc.xml
+       xmlto --skip-validation txt sst-doc.xml
+sst.doc: sst-doc.txt
+       makehelp.py >sst.doc
+
 clean:
-       rm -f *.o sst
+       rm -f *.o sst sst-doc.txt sst.doc