Moved most of install logic to makefile

Makefile has again a make install target. The install targets
are split because it is easier for the rules file to install
the files for the different packages inside different destinations
directly.
master
Salvo 'LtWorf' Tomaselli 2015-10-03 23:54:23 +07:00
parent b538fff8b0
commit e24e757342
4 changed files with 29 additions and 16 deletions

@ -32,5 +32,20 @@ clean:
rm -f relational_gui/rel_edit.py
rm -f relational_gui/resources.py
debian:
dpkg-buildpackage
install-relational-cli:
python3 setup/relational-cli.setup.py install --root=$${DESTDIR:-/};
rm -rf build;
install -D relational_gui.py $${DESTDIR:-/}/usr/bin/relational-cli
install-python3-relational:
python3 setup/python3-relational.setup.py install --root=$${DESTDIR:-/};
rm -rf build;
install-relational:
python3 setup/relational.setup.py install --root=$${DESTDIR:-/};
rm -rf build;
install -D relational_gui.py $${DESTDIR:-/}/usr/bin/relational
install -m0644 -D relational.desktop $${DESTDIR:-/}/usr/share/applications/relational.desktop
install -m0644 -D relational_gui/resources/relational.png $${DESTDIR:-/}/usr/share/pixmaps/relational.png
install: install-relational-cli install_module_gui install-relational

6
debian/changelog vendored

@ -1,3 +1,9 @@
relational (2.2-1) UNRELEASED; urgency=medium
* Fixed debian/rules to run testsuite just once
-- Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it> Sun, 04 Oct 2015 00:22:27 +0200
relational (2.1-1) unstable; urgency=medium
* New upstream release

@ -1,2 +0,0 @@
relational.desktop usr/share/applications
relational_gui/resources/relational.png usr/share/pixmaps

18
debian/rules vendored

@ -2,22 +2,16 @@
SHELL=sh -e
%:
make
./driver.py
dh $@ --with python3
override_dh_auto_test:
./driver.py
clean:
rm -rf build *.egg-info
dh $@
override_dh_auto_build:
override_dh_auto_install:
for pkg in relational-cli python3-relational relational; do \
python3 setup/$${pkg}.setup.py install --root=$(CURDIR)/debian/$${pkg}; \
rm -rf build; \
done
override_dh_install:
install -D relational_gui.py debian/relational/usr/bin/relational
install -D relational_gui.py debian/relational-cli/usr/bin/relational-cli
dh_install
DESTDIR=debian/relational-cli make install-relational-cli
DESTDIR=debian/python3-relational make install-python3-relational
DESTDIR=debian/relational make install-relational