]> thyrsus.com Git - ski.git/commitdiff
Initial revision
authorEric S. Raymond <esr@thyrsus.com>
Mon, 12 Jan 2004 02:16:09 +0000 (02:16 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 12 Jan 2004 02:16:09 +0000 (02:16 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..0d08d3b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+#
+# makefile for `ski'
+#
+VERS=$(shell sed <ski.spec -n -e '/Version: \(.*\)/s//\1/p')
+
+SOURCES = README COPYING ski ski.xml ski.6 Makefile ski.spec
+
+all: ski.6
+
+ski.6: ski.xml
+       xmlto man ski.xml
+
+ski.html: ski.xml
+       xmlto html-nochunks ski.xml
+
+clean:
+       rm -f *~ *.6 ski.html
+
+ski-$(VERS).tar.gz: $(SOURCES)
+       @ls $(SOURCES) | sed s:^:ski-$(VERS)/: >MANIFEST
+       @(cd ..; ln -s ski ski-$(VERS))
+       (cd ..; tar -czvf ski/ski-$(VERS).tar.gz `cat ski/MANIFEST`)
+       @(cd ..; rm ski-$(VERS))
+
+dist: ski-$(VERS).tar.gz
+
+release: ski-$(VERS).tar.gz ski.html
+       shipper -f; rm -f CHANGES ANNOUNCE* *.6 *.html *.rpm *.lsm