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.
This commit is contained in:
parent
b538fff8b0
commit
e24e757342
19
Makefile
19
Makefile
@ -32,5 +32,20 @@ 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
|
||||||
|
|
||||||
debian:
|
install-relational-cli:
|
||||||
dpkg-buildpackage
|
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
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
|
relational (2.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
* New upstream release
|
* New upstream release
|
||||||
|
2
debian/relational.install
vendored
2
debian/relational.install
vendored
@ -1,2 +0,0 @@
|
|||||||
relational.desktop usr/share/applications
|
|
||||||
relational_gui/resources/relational.png usr/share/pixmaps
|
|
18
debian/rules
vendored
18
debian/rules
vendored
@ -2,22 +2,16 @@
|
|||||||
SHELL=sh -e
|
SHELL=sh -e
|
||||||
|
|
||||||
%:
|
%:
|
||||||
make
|
|
||||||
./driver.py
|
|
||||||
dh $@ --with python3
|
dh $@ --with python3
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
||||||
|
./driver.py
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build *.egg-info
|
rm -rf build *.egg-info
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_build:
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
for pkg in relational-cli python3-relational relational; do \
|
DESTDIR=debian/relational-cli make install-relational-cli
|
||||||
python3 setup/$${pkg}.setup.py install --root=$(CURDIR)/debian/$${pkg}; \
|
DESTDIR=debian/python3-relational make install-python3-relational
|
||||||
rm -rf build; \
|
DESTDIR=debian/relational make install-relational
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user