A simple Makefile to easily generate tar balls for distribution
[matthijs/upstream/blosxom.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..1bd0d40
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+VERSION=$(shell head -1 ChangeLog | sed -e s/v//)
+
+dist:
+       rm -rf ../blosxom-$(VERSION)/
+       mkdir ../blosxom-$(VERSION)
+       cp -priv * ../blosxom-$(VERSION)/
+       cd .. && tar cvzf blosxom-$(VERSION).tar.gz --exclude=CVS --exclude='*~' --exclude=".??*" --exclude="#*#" --exclude="*.t" blosxom-$(VERSION)/
+       rm -rf ../blosxom-$(VERSION)/
+
+