mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-12-23 08:29:34 +00:00
b6b96b96b4
Fix return code when creating new file
38 lines
664 B
Makefile
Executable File
38 lines
664 B
Makefile
Executable File
PACKAGE=a2pi
|
|
VERSION=0.1.8
|
|
DIST=$(PACKAGE)-$(VERSION)
|
|
DISTDIR=./$(DIST)
|
|
|
|
a2pi:
|
|
$(MAKE) -C src
|
|
|
|
clean:
|
|
-rm $(PACKAGE)_*
|
|
-rm *.deb
|
|
-rm -rf $(DISTDIR)
|
|
-rm *.tar.gz
|
|
$(MAKE) -C src clean
|
|
|
|
install:
|
|
$(MAKE) -C src install
|
|
|
|
dist:
|
|
$(MAKE) clean
|
|
mkdir $(DISTDIR)
|
|
-chmod 777 $(DISTDIR)
|
|
cp LICENSE.txt $(DISTDIR)
|
|
cp README.md $(DISTDIR)
|
|
cp Makefile $(DISTDIR)
|
|
cp -R ./debian $(DISTDIR)
|
|
cp -R ./docs $(DISTDIR)
|
|
cp -R ./share $(DISTDIR)
|
|
cp -R ./src $(DISTDIR)
|
|
-chmod -R a+r $(DISTDIR)
|
|
tar czf $(DIST).tar.gz $(DISTDIR)
|
|
|
|
deb:
|
|
$(MAKE) dist
|
|
mv $(DIST).tar.gz $(PACKAGE)_$(VERSION).orig.tar.gz
|
|
cd $(DIST); debuild -us -uc
|
|
rm $(PACKAGE)_$(VERSION).orig.tar.gz
|