X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=makefile;h=f98e173cd02512da078e185cfe200d57d834940c;hb=a6c062d033c2cf9be1eb9e1164de84ba45379681;hp=be24e453ff82e6c87bc4a491d6017e5ea9ca9fbd;hpb=e38417cf291ac23e9de46b0376e42747d1d39582;p=super-star-trek.git diff --git a/makefile b/makefile index be24e45..f98e173 100644 --- a/makefile +++ b/makefile @@ -7,13 +7,13 @@ CFLAGS= -O -g -DSSTDOC='"/usr/share/doc/sst/sst.doc"' .c.o: $(CC) $(CFLAGS) -c $< -CFILES= sst.c finish.c reports.c setup.c linux.c moving.c battle.c events.c ai.c planets.c +CFILES= sst.c finish.c reports.c setup.c moving.c battle.c events.c ai.c planets.c io.c OFILES= $(CFILES:.c=.o) HFILES=sst.h -DOC = sst-doc.xml sst.xml TODO +DOCS = README sst-doc.xml sst.xml TODO # sst.doc and sst.6 are included so target system won't need xmlto -SOURCES= $(CFILES) $(HFILES) $(DOC) sst.doc sst.6 makehelp.py makefile sst.spec +SOURCES= $(CFILES) $(HFILES) $(DOCS) sst.doc sst.6 makehelp.py makefile sst.spec all: sst sst.doc @@ -31,9 +31,9 @@ sst.doc: sst-doc.txt makehelp.py >sst.doc sst-doc.html: sst-doc.xml - xmlto --skip-validation xhhtml-nochunks sst-doc.xml + xmlto --skip-validation xhtml-nochunks sst-doc.xml -install: sst.6 uninstall +install: uninstall sst.6 sst.doc sst-doc.html install -m 755 -o 0 -g 0 -d $(ROOT)/usr/bin/ install -m 755 -o 0 -g 0 sst $(ROOT)/usr/bin/sst install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man6/