author | kergoth <kergoth> | 2003-01-16 06:55:42 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-01-16 06:55:42 (UTC) |
commit | 3f2f72773a1d12da231ba12e34cdc2842e30fe5d (patch) (unidiff) | |
tree | 65cd87df8e56179fa4642fb23ef53117f38412cc | |
parent | 0b9787872c6e88ebc5591e0fc2dcc6c3e57e9b9c (diff) | |
download | opie-3f2f72773a1d12da231ba12e34cdc2842e30fe5d.zip opie-3f2f72773a1d12da231ba12e34cdc2842e30fe5d.tar.gz opie-3f2f72773a1d12da231ba12e34cdc2842e30fe5d.tar.bz2 |
Add 'ipk' target to makefile, that creates a temp directory with mktemp, does a make DESTDIR=thatdir install into it, and runs ipkg-build on it :) needs tweaking.
-rw-r--r-- | include.pro | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include.pro b/include.pro index cbc534d..12908ec 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,58 +1,69 @@ | |||
1 | # make install | 1 | # make install |
2 | 2 | ||
3 | # base opie install path | 3 | # base opie install path |
4 | outdir = /opt/QtPalmtop | 4 | outdir = /opt/QtPalmtop |
5 | 5 | ||
6 | contains( TEMPLATE, lib ) { | 6 | contains( TEMPLATE, lib ) { |
7 | target.path = $$outdir/lib | 7 | target.path = $$outdir/lib |
8 | } | 8 | } |
9 | !contains( TEMPLATE, lib ) { | 9 | !contains( TEMPLATE, lib ) { |
10 | target.path = $$outdir/bin | 10 | target.path = $$outdir/bin |
11 | } | 11 | } |
12 | INSTALLS += target | 12 | INSTALLS += target |
13 | 13 | ||
14 | # ipkg control files | 14 | # ipkg control files |
15 | control.path = /CONTROL | 15 | control.path = /CONTROL |
16 | control.files = control postinst prerm postrm preinst conffiles | 16 | control.files = control postinst prerm postrm preinst conffiles |
17 | INSTALLS += control | 17 | INSTALLS += control |
18 | 18 | ||
19 | # images, default is $$outdir/pics/$$TARGET | 19 | # images, default is $$outdir/pics/$$TARGET |
20 | pics.path = $$outdir/pics/$$TARGET | 20 | pics.path = $$outdir/pics/$$TARGET |
21 | pics.files = pics/* | 21 | pics.files = pics/* |
22 | INSTALLS += pics | 22 | INSTALLS += pics |
23 | 23 | ||
24 | # sounds, default path is $$outdir/sounds/$$TARGET | 24 | # sounds, default path is $$outdir/sounds/$$TARGET |
25 | sounds.path = $$outdir/sounds/$$TARGET | 25 | sounds.path = $$outdir/sounds/$$TARGET |
26 | sounds.files = sounds/* | 26 | sounds.files = sounds/* |
27 | INSTALLS += sounds | 27 | INSTALLS += sounds |
28 | 28 | ||
29 | # init scripts, default path is /etc/init.d | 29 | # init scripts, default path is /etc/init.d |
30 | init.path = /etc/init.d | 30 | init.path = /etc/init.d |
31 | init.files = init | 31 | init.files = init.d/* |
32 | INSTALLS += init | 32 | INSTALLS += init |
33 | 33 | ||
34 | # data, default path is /usr/share/$$TARGET | 34 | # data, default path is /usr/share/$$TARGET |
35 | data.path = /usr/share/$$TARGET | 35 | data.path = /usr/share/$$TARGET |
36 | data.files = share/* | 36 | data.files = share/* |
37 | INSTALLS += data | 37 | INSTALLS += data |
38 | 38 | ||
39 | etc.path = $$outdir/etc/ | ||
40 | etc.files = etc/* | ||
41 | INSTALLS += etc | ||
42 | |||
43 | apps.path = $$outdir/apps/ | ||
44 | apps.files = apps/* | ||
45 | INSTALLS += apps | ||
46 | |||
39 | # sounds, default path is $$outdir/sounds/$$TARGET | 47 | # sounds, default path is $$outdir/sounds/$$TARGET |
40 | sounds.path = $$outdir/sounds/$$TARGET | 48 | sounds.path = $$outdir/sounds/$$TARGET |
41 | sounds.files = sounds/* | 49 | sounds.files = sounds/* |
42 | INSTALLS += sounds | 50 | INSTALLS += sounds |
43 | 51 | ||
44 | # anything in nonstandard paths | 52 | # anything in nonstandard paths |
45 | root.path = / | 53 | root.path = / |
46 | root.files = root/* | 54 | root.files = root/* |
47 | INSTALLS += root | 55 | INSTALLS += root |
48 | 56 | ||
49 | # new targets | 57 | # new targets |
50 | 58 | ||
51 | lupdate.target = lupdate | 59 | lupdate.target = lupdate |
52 | lupdate.commands = lupdate -noobsolete $(PRO) | 60 | lupdate.commands = lupdate -noobsolete $(PRO) |
53 | 61 | ||
54 | lrelease.target = lrelease | 62 | lrelease.target = lrelease |
55 | lrelease.commands = lrelease $(PRO) | 63 | lrelease.commands = lrelease $(PRO) |
56 | 64 | ||
57 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease | 65 | ipk.target = ipk |
66 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) DESTDIR="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | ||
67 | |||
68 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk | ||
58 | 69 | ||