summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-01 16:28:01 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-01 16:28:01 -0500
commitfb6962e856a3d2db72053bad60d16aeffd50e072 (patch)
treedffc8b21c75e7ddda0ae90a674cbe01fc407cccc /Makefile
parent1a8c525d7fb3c00c373a80a40306e32221836362 (diff)
downloaddeheader-fb6962e856a3d2db72053bad60d16aeffd50e072.tar.gz
deheader-fb6962e856a3d2db72053bad60d16aeffd50e072.tar.bz2
deheader-fb6962e856a3d2db72053bad60d16aeffd50e072.tar.xz
deheader-fb6962e856a3d2db72053bad60d16aeffd50e072.zip
Add documentation, the beginnings of a test suite, a logo, an shipper control.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..06ef51e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,45 @@
+#
+# makefile for `deheader'
+#
+VERS=$(shell sed <deheader -n -e '/version\s*=\s*"\(.*\)"/s//\1/p')
+
+SOURCES = README COPYING NEWS deheader deheader.xml deheader.1 Makefile control deheader.png
+
+all: deheader.1
+
+deheader.1: deheader.xml
+ xmlto man deheader.xml
+
+deheader.html: deheader.xml
+ xmlto html-nochunks deheader.xml
+
+clean:
+ rm -f *~ *.1 *.html test/*.o MANIFEST SHIPPER.*
+
+regress:
+ @echo "Testing deheader: no output is good news."
+ @deheader test >/tmp/regress
+ @diff -u test/regress.chk /tmp/regress
+ @rm /tmp/regress
+makeregress:
+ @deheader test >test/regress.chk
+
+pychecker:
+ @ln -f deheader deheader.py
+ @-pychecker --only --limit 50 deheader.py
+ @rm -f deheader.py*
+
+version:
+ @echo $(VERS)
+
+deheader-$(VERS).tar.gz: $(SOURCES)
+ @ls $(SOURCES) | sed s:^:deheader-$(VERS)/: >MANIFEST
+ @(cd ..; ln -s deheader deheader-$(VERS))
+ (cd ..; tar -czf deheader/deheader-$(VERS).tar.gz `cat deheader/MANIFEST`)
+ @ls -l deheader-$(VERS).tar.gz
+ @(cd ..; rm deheader-$(VERS))
+
+dist: deheader-$(VERS).tar.gz
+
+release: deheader-$(VERS).tar.gz deheader.html
+ shipper -u -m -t; make clean