blob: a8c04a554d1c418e7a749e573fc8c40a19b02fcd (
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
|
include(version.inc)
TEMPLATE = subdirs
CONFIG += ordered \
qt \
warn_on
!win32 {
CONFIG += debug
}
SUBDIRS = pokemod \
pokemodr
pokemodr.depends = pokemod
distsrc.target = distsrc
distsrc.commands = ./make-tarball.sh $${VERSION}
QMAKE_EXTRA_UNIX_TARGETS += distsrc
isEmpty(PREFIX) {
PREFIX = $$(PREFIX)
}
isEmpty(PREFIX) {
PREFIX = /usr
}
documentation.path = $$PREFIX/share/doc/pokegen-$${VERSION}
documentation.files = DISCLAIMER \
LICENSE
INSTALLS += documentation
win32 {
; nsis-installer.target = nsis-installer
; nsis-installer.commands =
; nsis-installer.depends = doc
; QMAKE_EXTRA_TARGETS += nsis-installer
} mac {
} else {
rpm.target = rpm
rpm.commands = rpmbuild -ta releases/pokegen-$${VERSION}.tar.bz2
rpm.depends = distsrc
; deb.target = deb
; deb.commands = dpkg -b
; deb.depends = distsrc doc
QMAKE_EXTRA_TARGETS += rpm
}
|