Added 'make package' command to package linux build
This commit is contained in:
parent
c19e4d4e2b
commit
d407177d34
3 changed files with 25 additions and 16 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -18,3 +18,5 @@ ui_*.h
|
||||||
/debian/*.substvars
|
/debian/*.substvars
|
||||||
/debian/paysages3d
|
/debian/paysages3d
|
||||||
/*.trace
|
/*.trace
|
||||||
|
/paysages3d-linux/
|
||||||
|
/paysages3d-linux.tar.bz2
|
||||||
|
|
32
Makefile
32
Makefile
|
@ -49,21 +49,21 @@ profile_cli:debug
|
||||||
LD_LIBRARY_PATH=build/debug/rendering perf record -g fp ./build/debug/paysages-cli
|
LD_LIBRARY_PATH=build/debug/rendering perf record -g fp ./build/debug/paysages-cli
|
||||||
perf report -g
|
perf report -g
|
||||||
|
|
||||||
install:release
|
package:release
|
||||||
mkdir -p ${DESTDIR}/usr/bin
|
rm -rf paysages3d-linux
|
||||||
mkdir -p ${DESTDIR}/usr/lib
|
rm -f paysages3d-linux.tar.gz
|
||||||
mkdir -p ${DESTDIR}/usr/share/paysages3d
|
mkdir paysages3d-linux
|
||||||
cp build/release/editing/paysages-gui ${DESTDIR}/usr/bin/paysages3d
|
mkdir paysages3d-linux/lib
|
||||||
cp build/release/exploring/libpaysages_exploring.so ${DESTDIR}/usr/lib/
|
mkdir paysages3d-linux/cache
|
||||||
cp build/release/rendering/libpaysages_rendering.so ${DESTDIR}/usr/lib/
|
cp $(BUILDPATH)/system/libpaysages_system.so* paysages3d-linux/lib/
|
||||||
cp data/.paysages_data ${DESTDIR}/usr/share/paysages3d/
|
cp $(BUILDPATH)/rendering/libpaysages_rendering.so* paysages3d-linux/lib/
|
||||||
cp -r data/i18n ${DESTDIR}/usr/share/paysages3d/
|
cp $(BUILDPATH)/exploring/libpaysages_exploring.so* paysages3d-linux/lib/
|
||||||
cp -r data/images ${DESTDIR}/usr/share/paysages3d/
|
cp $(BUILDPATH)/editing/paysages-gui paysages3d-linux/lib/
|
||||||
cp cache/*.cache ${DESTDIR}/usr/share/paysages3d/
|
chmod +x paysages3d-linux/lib/paysages-gui
|
||||||
|
cp -r data paysages3d-linux/
|
||||||
deb:
|
cp -r cache/*.cache paysages3d-linux/cache/
|
||||||
apt-get install pbuilder build-essential check qt4-dev-tools
|
cp dist/paysages3d.sh paysages3d-linux/
|
||||||
DEBFULLNAME="Michael Lemaire" DEBEMAIL=paysages@thunderk.net dch -i -p -u low -D stable
|
chmod +x paysages3d-linux/paysages3d.sh
|
||||||
debuild -b -us -uc
|
tar -cjvvf paysages3d-linux.tar.bz2 paysages3d-linux/
|
||||||
|
|
||||||
.PHONY:all clean release build
|
.PHONY:all clean release build
|
||||||
|
|
7
dist/paysages3d.sh
vendored
Normal file
7
dist/paysages3d.sh
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT_PATH=$(dirname $0)
|
||||||
|
cd ${SCRIPT_PATH}
|
||||||
|
LD_LIBRARY_PATH=${SCRIPT_PATH}/lib ${SCRIPT_PATH}/lib/paysages-gui
|
||||||
|
cd -
|
||||||
|
|
Loading…
Reference in a new issue