summaryrefslogtreecommitdiff
path: root/include.pro
blob: 0ce64247db902702cd58d84780f833a043c2055f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# make install

# base opie install path
outdir = /opt/QtPalmtop

contains( TEMPLATE, lib ) {
	target.path = $$outdir/lib
}
!contains( TEMPLATE, lib ) {
	target.path = $$outdir/bin
}
INSTALLS += target

# ipkg control files
control.path = /CONTROL
control.files = control postinst prerm postrm preinst conffiles
INSTALLS += control

# images, default is $$outdir/pics/$$TARGET
pics.path = $$outdir/pics/$$TARGET
pics.files = pics/*
INSTALLS += pics

# sounds, default path is $$outdir/sounds/$$TARGET
sounds.path = $$outdir/sounds/$$TARGET
sounds.files = sounds/*
INSTALLS += sounds

# init scripts, default path is /etc/init.d
init.path = /etc/init.d
init.files = init.d/*
INSTALLS += init

# data, default path is /usr/share/$$TARGET
data.path = /usr/share/$$TARGET
data.files = share/*
INSTALLS += data

etc.path = $$outdir/etc/
etc.files = etc/*
INSTALLS += etc

apps.path = $$outdir/apps/
apps.files = apps/*
INSTALLS += apps

# sounds, default path is $$outdir/sounds/$$TARGET
sounds.path = $$outdir/sounds/$$TARGET
sounds.files = sounds/*
INSTALLS += sounds

# anything in nonstandard paths
root.path = /
root.files = root/*
INSTALLS += root

# new targets

lupdate.target = lupdate
lupdate.commands = lupdate -noobsolete $(PRO)

lrelease.target = lrelease
lrelease.commands = lrelease $(PRO)

ipk.target = ipk
ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; )

QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk
QMAKE_LFLAGS += -Wl,-rpath=$$outdir/lib
QMAKE_LIBDIR += $(OPIEDIR)/lib