Make targets as phony, put everything in dist

master
Salvo 'LtWorf' Tomaselli 2020-06-02 20:02:00 +07:00
parent 3da5aa95b1
commit ee429500ec
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 8 additions and 2 deletions

@ -1,3 +1,4 @@
.PHONY: gui
gui: pyqt gui: pyqt
pyqt: pyqt:
@ -8,9 +9,11 @@ pyqt:
sed -i 's/QtWidgets.QPlainTextEdit/editor.Editor/g' relational_gui/maingui.py sed -i 's/QtWidgets.QPlainTextEdit/editor.Editor/g' relational_gui/maingui.py
echo 'from . import editor' >> relational_gui/maingui.py echo 'from . import editor' >> relational_gui/maingui.py
.PHONY: test
test: test:
./driver.py ./driver.py
.PHONY: dist
dist: clean dist: clean
rm -rf /tmp/relational/ rm -rf /tmp/relational/
rm -rf /tmp/relational-* rm -rf /tmp/relational-*
@ -23,10 +26,9 @@ dist: clean
#(cd /tmp; tar -zcf relational.tar.gz relational-*/) #(cd /tmp; tar -zcf relational.tar.gz relational-*/)
(cd /tmp; tar -zcf relational.tar.gz relational/) (cd /tmp; tar -zcf relational.tar.gz relational/)
mv /tmp/relational.tar.gz ./relational_`./relational_gui.py -v | grep Relational | cut -d" " -f2`.orig.tar.gz mv /tmp/relational.tar.gz ./relational_`./relational_gui.py -v | grep Relational | cut -d" " -f2`.orig.tar.gz
release: dist
gpg --sign --armor --detach-sign ./relational_`./relational_gui.py -v | grep Relational | cut -d" " -f2`.orig.tar.gz gpg --sign --armor --detach-sign ./relational_`./relational_gui.py -v | grep Relational | cut -d" " -f2`.orig.tar.gz
.PHONY: clean
clean: clean:
rm -rf `find -name "*~"` rm -rf `find -name "*~"`
rm -rf `find -name "*pyc"` rm -rf `find -name "*pyc"`
@ -41,16 +43,19 @@ clean:
rm -f relational_gui/rel_edit.py rm -f relational_gui/rel_edit.py
rm -f relational_gui/resources.py rm -f relational_gui/resources.py
.PHONY: install-relational-cli
install-relational-cli: install-relational-cli:
python3 setup/relational-cli.setup.py install --root=$${DESTDIR:-/}; python3 setup/relational-cli.setup.py install --root=$${DESTDIR:-/};
rm -rf build; rm -rf build;
install -D relational_gui.py $${DESTDIR:-/}/usr/bin/relational-cli install -D relational_gui.py $${DESTDIR:-/}/usr/bin/relational-cli
install -D relational-cli.1 $${DESTDIR:-/}/usr/share/man/man1/relational-cli.1 install -D relational-cli.1 $${DESTDIR:-/}/usr/share/man/man1/relational-cli.1
.PHONY: install-python3-relational
install-python3-relational: install-python3-relational:
python3 setup/python3-relational.setup.py install --root=$${DESTDIR:-/}; python3 setup/python3-relational.setup.py install --root=$${DESTDIR:-/};
rm -rf build; rm -rf build;
.PHONY: install-relational
install-relational: install-relational:
python3 setup/relational.setup.py install --root=$${DESTDIR:-/}; python3 setup/relational.setup.py install --root=$${DESTDIR:-/};
rm -rf build; rm -rf build;
@ -59,4 +64,5 @@ install-relational:
install -m0644 -D relational_gui/resources/relational.png $${DESTDIR:-/}/usr/share/pixmaps/relational.png install -m0644 -D relational_gui/resources/relational.png $${DESTDIR:-/}/usr/share/pixmaps/relational.png
install -D relational.1 $${DESTDIR:-/}/usr/share/man/man1/relational.1 install -D relational.1 $${DESTDIR:-/}/usr/share/man/man1/relational.1
.PHONY: install
install: install-relational-cli install-python3-relational install-relational install: install-relational-cli install-python3-relational install-relational