2013-09-20 04:02:08 +00:00
|
|
|
PACKAGE=a2pi
|
2013-09-22 20:06:33 +00:00
|
|
|
VERSION=0.1.0
|
2013-09-20 04:02:08 +00:00
|
|
|
DIST=$(PACKAGE)-$(VERSION)
|
|
|
|
DISTDIR=./$(DIST)
|
|
|
|
|
|
|
|
a2pi:
|
|
|
|
$(MAKE) -C src
|
|
|
|
|
2013-09-20 15:57:17 +00:00
|
|
|
clean:
|
2013-09-22 05:52:21 +00:00
|
|
|
-rm $(PACKAGE)_*
|
|
|
|
-rm *.deb
|
|
|
|
-rm -rf $(DISTDIR)
|
2013-09-20 15:57:17 +00:00
|
|
|
-rm *.tar.gz
|
|
|
|
$(MAKE) -C src clean
|
|
|
|
|
|
|
|
install:
|
|
|
|
$(MAKE) -C src install
|
|
|
|
|
2013-09-20 04:02:08 +00:00
|
|
|
dist:
|
2013-09-22 05:52:21 +00:00
|
|
|
$(MAKE) clean
|
2013-09-20 04:02:08 +00:00
|
|
|
mkdir $(DISTDIR)
|
|
|
|
-chmod 777 $(DISTDIR)
|
2013-09-21 01:57:30 +00:00
|
|
|
cp LICENSE.txt $(DISTDIR)
|
|
|
|
cp README.md $(DISTDIR)
|
|
|
|
cp Makefile $(DISTDIR)
|
2013-09-20 15:57:17 +00:00
|
|
|
cp -R ./debian $(DISTDIR)
|
2013-09-20 04:02:08 +00:00
|
|
|
cp -R ./docs $(DISTDIR)
|
|
|
|
cp -R ./share $(DISTDIR)
|
|
|
|
cp -R ./src $(DISTDIR)
|
|
|
|
-chmod -R a+r $(DISTDIR)
|
|
|
|
tar czf $(DIST).tar.gz $(DISTDIR)
|
2013-09-22 05:52:21 +00:00
|
|
|
|
|
|
|
deb:
|
|
|
|
$(MAKE) dist
|
|
|
|
mv $(DIST).tar.gz $(PACKAGE)_$(VERSION).orig.tar.gz
|
|
|
|
cd $(DIST); debuild -us -uc
|
|
|
|
rm $(PACKAGE)_$(VERSION).orig.tar.gz
|