From: Eric S. Raymond Date: Tue, 30 Nov 2010 10:29:51 +0000 (+0000) Subject: A much simpler makefile. X-Git-Tag: 2.0~12 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=1a227b2534c88be6a7adc795d632d6c32eac9616;p=super-star-trek.git A much simpler makefile. --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4782716 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# Makefile for the SST2K project + +VERS=$(shell sed $(MANDIR)/sst.6.gz + +sst.6: doc/sst.xml + cd doc; xmlto man sst.xml; mv sst.6 .. + +sst.html: doc/sst.xml + cd doc; xmlto html-nochunks sst.xml; mv sst.html .. + +sst-$(VERS).tar.gz: $(SOURCES) sst.6 + mkdir sst-$(VERS) + cp $(SOURCES) sst-$(VERS) + tar -czf sst-$(VERS).tar.gz sst-$(VERS) + rm -fr sst-$(VERS) + ls -l sst-$(VERS).tar.gz + +dist: sst-$(VERS).tar.gz + +clean: + rm -f sst.6 sst.html + rm -f *.1 MANIFEST index.html SHIPPER.* + +release: sst-$(VERS).tar.gz sst.html + shipper -u -m -t; make clean