Add top-level Makefile

This commit is contained in:
David Schmenk 2013-09-19 21:02:08 -07:00
parent 92703806fc
commit 4513da7ab6

19
Makefile Executable file
View File

@ -0,0 +1,19 @@
PACKAGE=a2pi
VERSION=0.9.0
DIST=$(PACKAGE)-$(VERSION)
DISTDIR=./$(DIST)
a2pi:
$(MAKE) -C src
dist:
-rm -rf $(DISTDIR)
mkdir $(DISTDIR)
-chmod 777 $(DISTDIR)
-cp * $(DISTDIR)
cp -R ./docs $(DISTDIR)
cp -R ./share $(DISTDIR)
cp -R ./src $(DISTDIR)
-chmod -R a+r $(DISTDIR)
tar czf $(DIST).tar.gz $(DISTDIR)
rm -rf $(DISTDIR)