author | zautrix <zautrix> | 2004-10-17 20:18:43 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-17 20:18:43 (UTC) |
commit | 4220d587eb43d4117e5d5a8a8f0cb6e8381b5fbe (patch) (unidiff) | |
tree | 9bfbfb11a5e63aefe805f024aa8ef05c74298e0f /Makefile | |
parent | a20e8333d7178a01672545232b74bd5cb6d6958b (diff) | |
download | kdepimpi-4220d587eb43d4117e5d5a8a8f0cb6e8381b5fbe.zip kdepimpi-4220d587eb43d4117e5d5a8a8f0cb6e8381b5fbe.tar.gz kdepimpi-4220d587eb43d4117e5d5a8a8f0cb6e8381b5fbe.tar.bz2 |
packagege fixes
-rw-r--r-- | Makefile | 507 |
1 files changed, 337 insertions, 170 deletions
@@ -1,171 +1,338 @@ | |||
1 | ############################################################################# | 1 | export KDEPIMDIR = $(shell pwd) |
2 | # Makefile for building: kdepim-desktop | 2 | |
3 | # Generated by qmake (1.07a) (Qt 3.3.3) on: Sun Oct 17 11:53:22 2004 | 3 | export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version) |
4 | # Project: kdepim-desktop.pro | 4 | |
5 | # Template: subdirs | 5 | ifeq ($(PLATFORM) , zaurus) |
6 | # Command: $(QMAKE) "CONFIG+=thread" "CONFIG+=debug" -o Makefile kdepim-desktop.pro | 6 | BUILD_NO_LDAP_PLUGIN=1 |
7 | ############################################################################# | 7 | endif |
8 | 8 | ||
9 | MAKEFILE =Makefile | 9 | ifneq ($(PLATFORM) , zaurus) |
10 | QMAKE =qmake | 10 | BUILD_NO_SHARP_PLUGIN=1 |
11 | DEL_FILE = rm -f | 11 | endif |
12 | CHK_DIR_EXISTS= test -d | 12 | |
13 | MKDIR = mkdir -p | 13 | SUBDIRS_MICROKDE = \ |
14 | INSTALL_FILE= | 14 | libical/src/libical \ |
15 | INSTALL_DIR = | 15 | libical/src/libicalss \ |
16 | SUBTARGETS = \ | 16 | qtcompat \ |
17 | sub-gammu-emb-common \ | 17 | microkde \ |
18 | sub-gammu-emb-gammu \ | 18 | libkcal \ |
19 | sub-libical \ | 19 | libkdepim \ |
20 | sub-libkcal \ | 20 | kabc \ |
21 | sub-microkde \ | 21 | kabc/formats/binary \ |
22 | sub-libkdepim \ | 22 | kabc/plugins/file \ |
23 | sub-kabc \ | 23 | kabc/plugins/dir \ |
24 | sub-korganizer \ | 24 | korganizer \ |
25 | sub-kaddressbook \ | 25 | kalarmd \ |
26 | sub-kabc-plugins-file \ | 26 | kaddressbook |
27 | sub-kabc-plugins-dir | 27 | |
28 | 28 | SUBDIRS_QTOPIA_PLUGIN = \ | |
29 | first: all | 29 | kabc/plugins/qtopia |
30 | 30 | ||
31 | all: Makefile $(SUBTARGETS) | 31 | SUBDIRS_OPIE_PLUGIN = \ |
32 | 32 | kabc/plugins/opie | |
33 | gammu/emb/common/$(MAKEFILE): | 33 | |
34 | @$(CHK_DIR_EXISTS) "gammu/emb/common" || $(MKDIR) "gammu/emb/common" | 34 | SUBDIRS_SHARP_PLUGIN = \ |
35 | cd gammu/emb/common && $(QMAKE) common.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 35 | kabc/plugins/sharpdtm |
36 | sub-gammu-emb-common: gammu/emb/common/$(MAKEFILE) FORCE | 36 | |
37 | cd gammu/emb/common && $(MAKE) -f $(MAKEFILE) | 37 | SUBDIRS_LDAP_PLUGIN = \ |
38 | 38 | kabc/plugins/ldap | |
39 | gammu/emb/gammu/$(MAKEFILE): | 39 | |
40 | @$(CHK_DIR_EXISTS) "gammu/emb/gammu" || $(MKDIR) "gammu/emb/gammu" | 40 | SUBDIRS_MICROMAIL = \ |
41 | cd gammu/emb/gammu && $(QMAKE) gammu.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 41 | kmicromail/libetpan \ |
42 | sub-gammu-emb-gammu: gammu/emb/gammu/$(MAKEFILE) FORCE | 42 | kmicromail/libmailwrapper \ |
43 | cd gammu/emb/gammu && $(MAKE) -f $(MAKEFILE) | 43 | kmicromail |
44 | 44 | ||
45 | libical/$(MAKEFILE): | 45 | SUBDIRS_GAMMU = \ |
46 | @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical" | 46 | gammu/emb/common \ |
47 | cd libical && $(QMAKE) libical.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 47 | gammu/emb/gammu |
48 | sub-libical: libical/$(MAKEFILE) FORCE | 48 | |
49 | cd libical && $(MAKE) -f $(MAKEFILE) | 49 | SUBDIRS_PWMANAGER = \ |
50 | 50 | pwmanager/pwmanager | |
51 | libkcal/$(MAKEFILE): | 51 | |
52 | @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal" | 52 | SUBDIRS = \ |
53 | cd libkcal && $(QMAKE) libkcal.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 53 | $(SUBDIRS_MICROKDE) \ |
54 | sub-libkcal: libkcal/$(MAKEFILE) FORCE | 54 | $(SUBDIRS_QTOPIA_PLUGIN) \ |
55 | cd libkcal && $(MAKE) -f $(MAKEFILE) | 55 | $(SUBDIRS_OPIE_PLUGIN) \ |
56 | 56 | $(SUBDIRS_SHARP_PLUGIN) \ | |
57 | microkde/$(MAKEFILE): | 57 | $(SUBDIRS_LDAP_PLUGIN) \ |
58 | @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde" | 58 | $(SUBDIRS_MICROMAIL) \ |
59 | cd microkde && $(QMAKE) microkde.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 59 | $(SUBDIRS_GAMMU) \ |
60 | sub-microkde: microkde/$(MAKEFILE) FORCE | 60 | $(SUBDIRS_PWMANAGER) |
61 | cd microkde && $(MAKE) -f $(MAKEFILE) | 61 | |
62 | 62 | ||
63 | libkdepim/$(MAKEFILE): | 63 | all: build_microkde \ |
64 | @$(CHK_DIR_EXISTS) "libkdepim" || $(MKDIR) "libkdepim" | 64 | build_qtopia_plugin \ |
65 | cd libkdepim && $(QMAKE) libkdepim.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 65 | build_opie_plugin \ |
66 | sub-libkdepim: libkdepim/$(MAKEFILE) FORCE | 66 | build_sharp_plugin \ |
67 | cd libkdepim && $(MAKE) -f $(MAKEFILE) | 67 | build_ldap_plugin \ |
68 | 68 | build_micromail \ | |
69 | kabc/$(MAKEFILE): | 69 | build_gammu \ |
70 | @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc" | 70 | build_pwmanager |
71 | cd kabc && $(QMAKE) kabc.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 71 | |
72 | sub-kabc: kabc/$(MAKEFILE) FORCE | 72 | |
73 | cd kabc && $(MAKE) -f $(MAKEFILE) | 73 | build_microkde: variable_test tmake |
74 | 74 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ | |
75 | korganizer/$(MAKEFILE): | 75 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
76 | @$(CHK_DIR_EXISTS) "korganizer" || $(MKDIR) "korganizer" | 76 | done |
77 | cd korganizer && $(QMAKE) korganizer.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 77 | |
78 | sub-korganizer: korganizer/$(MAKEFILE) FORCE | 78 | build_qtopia_plugin: build_microkde |
79 | cd korganizer && $(MAKE) -f $(MAKEFILE) | 79 | ifdef BUILD_NO_QTOPIA_PLUGIN |
80 | 80 | @echo == qtopia plugin not build. | |
81 | kaddressbook/$(MAKEFILE): | 81 | else |
82 | @$(CHK_DIR_EXISTS) "kaddressbook" || $(MKDIR) "kaddressbook" | 82 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ |
83 | cd kaddressbook && $(QMAKE) kaddressbook.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 83 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
84 | sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE | 84 | done |
85 | cd kaddressbook && $(MAKE) -f $(MAKEFILE) | 85 | endif |
86 | 86 | ||
87 | kabc/plugins/file/$(MAKEFILE): | 87 | build_opie_plugin: build_microkde |
88 | @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file" | 88 | ifdef BUILD_NO_OPIE_PLUGIN |
89 | cd kabc/plugins/file && $(QMAKE) file.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 89 | @echo == opie plugin not build. |
90 | sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE | 90 | else |
91 | cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE) | 91 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ |
92 | 92 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | |
93 | kabc/plugins/dir/$(MAKEFILE): | 93 | done |
94 | @$(CHK_DIR_EXISTS) "kabc/plugins/dir" || $(MKDIR) "kabc/plugins/dir" | 94 | endif |
95 | cd kabc/plugins/dir && $(QMAKE) dir.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | 95 | |
96 | sub-kabc-plugins-dir: kabc/plugins/dir/$(MAKEFILE) FORCE | 96 | build_sharp_plugin: build_microkde |
97 | cd kabc/plugins/dir && $(MAKE) -f $(MAKEFILE) | 97 | ifdef BUILD_NO_SHARP_PLUGIN |
98 | 98 | @echo == ldap plugin not build. | |
99 | Makefile: kdepim-desktop.pro /usr/local/qtgcc/mkspecs/default/qmake.conf | 99 | else |
100 | $(QMAKE) "CONFIG+=thread" "CONFIG+=debug" -o Makefile kdepim-desktop.pro | 100 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ |
101 | qmake: qmake_all | 101 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
102 | @$(QMAKE) "CONFIG+=thread" "CONFIG+=debug" -o Makefile kdepim-desktop.pro | 102 | done |
103 | 103 | endif | |
104 | all: $(SUBTARGETS) | 104 | |
105 | qmake_all: gammu/emb/common/$(MAKEFILE) gammu/emb/gammu/$(MAKEFILE) libical/$(MAKEFILE) libkcal/$(MAKEFILE) microkde/$(MAKEFILE) libkdepim/$(MAKEFILE) kabc/$(MAKEFILE) korganizer/$(MAKEFILE) kaddressbook/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/dir/$(MAKEFILE) | 105 | build_ldap_plugin: build_microkde |
106 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 106 | ifdef BUILD_NO_LDAP_PLUGIN |
107 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 107 | @echo == ldap plugin not build. |
108 | ( [ -d libical ] && cd libical ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 108 | else |
109 | ( [ -d libkcal ] && cd libkcal ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 109 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ |
110 | ( [ -d microkde ] && cd microkde ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 110 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
111 | ( [ -d libkdepim ] && cd libkdepim ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 111 | done |
112 | ( [ -d kabc ] && cd kabc ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 112 | endif |
113 | ( [ -d korganizer ] && cd korganizer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 113 | |
114 | ( [ -d kaddressbook ] && cd kaddressbook ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 114 | |
115 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 115 | build_micromail: build_microkde |
116 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | 116 | ifdef BUILD_NO_MICROMAIL |
117 | clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE | 117 | @echo == kmicromail not build. |
118 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 118 | else |
119 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 119 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ |
120 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 120 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
121 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 121 | done |
122 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 122 | endif |
123 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 123 | |
124 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 124 | build_gammu: variable_test tmake |
125 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 125 | ifdef BUILD_NO_GAMMU |
126 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 126 | @echo == gammu not build. |
127 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 127 | else |
128 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; ) || true | 128 | for i in $(SUBDIRS_GAMMU); do pushd $$i; \ |
129 | uninstall_subdirs: qmake_all FORCE | 129 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
130 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 130 | done |
131 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 131 | endif |
132 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 132 | |
133 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 133 | build_pwmanager: build_microkde |
134 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 134 | ifdef BUILD_NO_PWMANAGER |
135 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 135 | @echo == pwmanager not build. |
136 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 136 | else |
137 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 137 | for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ |
138 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 138 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
139 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 139 | done |
140 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | 140 | endif |
141 | install_subdirs: qmake_all FORCE | 141 | |
142 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) install; ) || true | 142 | |
143 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) install; ) || true | 143 | variable_info: |
144 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) install; ) || true | 144 | @echo -------------------------------------- |
145 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) install; ) || true | 145 | @echo KDEPIM buildsystem, variableinfo... |
146 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) install; ) || true | 146 | @echo KDEPIMDIR=$(KDEPIMDIR) |
147 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) install; ) || true | 147 | @echo QTDIR=$(QTDIR) |
148 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) install; ) || true | 148 | @echo QPEDIR=$(QPEDIR) |
149 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) install; ) || true | 149 | @echo OPIEDIR=$(OPIEDIR) |
150 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) install; ) || true | 150 | @echo PLATFORM=$(PLATFORM) |
151 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true | 151 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) |
152 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) install; ) || true | 152 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) |
153 | distclean: qmake_all FORCE | 153 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) |
154 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 154 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) |
155 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 155 | @echo BUILD_NO_QTOPIA_PLUGIN=$(BUILD_NO_QTOPIA_PLUGIN) |
156 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 156 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) |
157 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 157 | ifndef BUILD_NO_SHARP_PLUGIN |
158 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 158 | @echo SHARPDTMSDK=$(SHARPDTMSDK) |
159 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 159 | endif |
160 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 160 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) |
161 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 161 | @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) |
162 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 162 | @echo -------------------------------------- |
163 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 163 | |
164 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | 164 | variable_test: variable_info |
165 | 165 | @echo KDEPIM buildsystem, variablecheck... | |
166 | install: install_subdirs | 166 | ifndef KDEPIMDIR |
167 | 167 | @echo KDEPIMDIR is not defined. | |
168 | uninstall: uninstall_subdirs | 168 | $(error KDEPIMDIR is not defined) |
169 | 169 | endif | |
170 | FORCE: | 170 | ifndef PLATFORM |
171 | @echo PLATFORM is not defined. | ||
172 | $(error PLATFORM is not defined) | ||
173 | endif | ||
174 | ifdef BUILD_NO_LDAP_PLUGIN | ||
175 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) | ||
176 | endif | ||
177 | ifdef BUILD_NO_OPIE_PLUGIN | ||
178 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) | ||
179 | endif | ||
180 | ifdef BUILD_NO_QTOPIA_PLUGIN | ||
181 | @echo QTOPIA PLUGIN will not be build, because BUILD_NO__QTOPIA_PLUGIN is set to $(BUILD_NO__QTOPIA_PLUGIN) | ||
182 | endif | ||
183 | ifdef BUILD_NO_MICROMAIL | ||
184 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) | ||
185 | endif | ||
186 | ifdef BUILD_NO_SHARP_PLUGIN | ||
187 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) | ||
188 | else | ||
189 | ifndef SHARPDTMSDK | ||
190 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) | ||
191 | $(error SHARPDTMSDK is not defined) | ||
192 | endif | ||
193 | endif | ||
194 | ifdef BUILD_NO_GAMMU | ||
195 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) | ||
196 | endif | ||
197 | ifdef BUILD_NO_PWMANAGER | ||
198 | @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) | ||
199 | endif | ||
200 | @echo -------------------------------------- | ||
201 | |||
202 | |||
203 | objects: | ||
204 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | ||
205 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | ||
206 | mkdir -p libical/lib/$(PLATFORM) | ||
207 | |||
208 | clean: | ||
209 | rm -rf libical/lib/$(PLATFORM)/*; | ||
210 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | ||
211 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | ||
212 | done | ||
213 | |||
214 | install: | ||
215 | |||
216 | cd bin/kdepim; make install | ||
217 | cp -r Pim $(QPEDIR)/apps | ||
218 | cp db2file/db2file $(QPEDIR)/bin/db2file | ||
219 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | ||
220 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | ||
221 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop | ||
222 | cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop | ||
223 | |||
224 | dist: | ||
225 | @echo Dont forget to do "make install" before "make dist" | ||
226 | rm -f *arm.ipk | ||
227 | rm -f *~ | ||
228 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim | ||
229 | ./mkipks kmicrokdelibs.control | ||
230 | ./mkipks korganizer.control | ||
231 | ./mkipks kaddressbook.control | ||
232 | ifndef BUILD_NO_MICROMAIL | ||
233 | ./mkipks kopiemail.control | ||
234 | endif | ||
235 | ./mkipks korganizer-alarm.control | ||
236 | ifndef BUILD_NO_GAMMU | ||
237 | ./mkipks phoneaccess.control | ||
238 | endif | ||
239 | ifndef BUILD_NO_PWMANAGER | ||
240 | ./mkipks pwmanager.control | ||
241 | endif | ||
242 | ./mkipks pim_TAB_icon.control | ||
243 | |||
244 | tmake: objects \ | ||
245 | qtcompat/Makefile$(PLATFORM) \ | ||
246 | microkde/Makefile$(PLATFORM) \ | ||
247 | libkcal/Makefile$(PLATFORM) \ | ||
248 | libkdepim/Makefile$(PLATFORM) \ | ||
249 | korganizer/Makefile$(PLATFORM) \ | ||
250 | kalarmd/Makefile$(PLATFORM) \ | ||
251 | libical/src/libical/Makefile$(PLATFORM) \ | ||
252 | libical/src/libicalss/Makefile$(PLATFORM) \ | ||
253 | kabc/Makefile$(PLATFORM) \ | ||
254 | kabc/formats/binary/Makefile$(PLATFORM) \ | ||
255 | kabc/plugins/file/Makefile$(PLATFORM) \ | ||
256 | kabc/plugins/dir/Makefile$(PLATFORM) \ | ||
257 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | ||
258 | kabc/plugins/opie/Makefile$(PLATFORM) \ | ||
259 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ | ||
260 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ | ||
261 | kaddressbook/Makefile$(PLATFORM) \ | ||
262 | kmicromail/Makefile$(PLATFORM) \ | ||
263 | kmicromail/libetpan/Makefile$(PLATFORM) \ | ||
264 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ | ||
265 | gammu/emb/common/Makefile$(PLATFORM) \ | ||
266 | gammu/emb/gammu/Makefile$(PLATFORM) \ | ||
267 | pwmanager/pwmanager/Makefile$(PLATFORM) \ | ||
268 | |||
269 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | ||
270 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) | ||
271 | |||
272 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | ||
273 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) | ||
274 | |||
275 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | ||
276 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) | ||
277 | |||
278 | |||
279 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | ||
280 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM) | ||
281 | |||
282 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | ||
283 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM) | ||
284 | |||
285 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro | ||
286 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM) | ||
287 | |||
288 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro | ||
289 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM) | ||
290 | |||
291 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro | ||
292 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM) | ||
293 | |||
294 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro | ||
295 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM) | ||
296 | |||
297 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro | ||
298 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) | ||
299 | |||
300 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro | ||
301 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM) | ||
302 | |||
303 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro | ||
304 | cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM) | ||
305 | |||
306 | kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro | ||
307 | cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM) | ||
308 | |||
309 | kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro | ||
310 | cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM) | ||
311 | |||
312 | kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro | ||
313 | cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM) | ||
314 | |||
315 | kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro | ||
316 | cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM) | ||
317 | |||
318 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro | ||
319 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM) | ||
320 | |||
321 | kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro | ||
322 | cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM) | ||
323 | |||
324 | kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro | ||
325 | cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM) | ||
326 | |||
327 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro | ||
328 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM) | ||
329 | |||
330 | gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro | ||
331 | cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM) | ||
332 | |||
333 | gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro | ||
334 | cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM) | ||
335 | |||
336 | pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro | ||
337 | cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM) | ||
171 | 338 | ||