summaryrefslogtreecommitdiffabout
path: root/Makefile
Unidiff
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile265
1 files changed, 144 insertions, 121 deletions
diff --git a/Makefile b/Makefile
index 22ba681..59e0664 100644
--- a/Makefile
+++ b/Makefile
@@ -1,122 +1,145 @@
1DISTPATH = $(shell pwd) 1#############################################################################
2DISTDIR = $(shell basename $(DISTPATH)) 2# Makefile for building: kopi-desktop
3 3# Generated by qmake (1.07a) (Qt 3.3.1) on: Sat Jul 10 00:50:39 2004
4SUBDIRS = libical/src/libical libical/src/libicalss qtcompat microkde \ 4# Project: kopi-desktop.pro
5 libkcal libkdepim kabc kabc/converter/opie kabc/formats/binary kabc/plugins/file kabc/plugins/dir \ 5# Template: subdirs
6 kabc/plugins/opie kaddressbook/xxport/opie \ 6# Command: $(QMAKE) -o Makefile kopi-desktop.pro
7 korganizer kalarmd kaddressbook kmicromail/libetpan kmicromail/libmailwrapper kmicromail 7#############################################################################
8all: tmake 8
9 for i in $(SUBDIRS); do pushd $$i; \ 9 MAKEFILE =Makefile
10 make -f Makefile$(PLATFORM) || exit 1; popd; \ 10 QMAKE =qmake
11 done 11DEL_FILE = rm -f
12 12CHK_DIR_EXISTS= test -d
13objects: 13MKDIR = mkdir -p
14 for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done 14 SUBTARGETS = \
15 for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done 15 sub-libical \
16 mkdir -p libical/lib/$(PLATFORM) 16 sub-libkcal \
17 17 sub-microkde \
18clean: 18 sub-libkdepim \
19 rm -f libical/lib/$(PLATFORM)/*; 19 sub-kabc \
20 for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ 20 sub-korganizer \
21 rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ 21 sub-kaddressbook \
22 done 22 sub-kabc-plugins-file \
23install: 23 sub-kabc-plugins-dir
24 cd bin/kdepim; make install 24
25 cp db2file/db2file $(QPEDIR)/bin/db2file 25first: all
26 cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop 26
27 cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop 27all: Makefile $(SUBTARGETS)
28 cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop 28
29 29libical/$(MAKEFILE):
30dist: 30 @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical"
31 @echo Dont forget to do "make install" before "make dist" 31 cd libical && $(QMAKE) libical.pro -o $(MAKEFILE)
32 rm -f *arm.ipk 32sub-libical: libical/$(MAKEFILE) FORCE
33 rm -f *~ 33 cd libical && $(MAKE) -f $(MAKEFILE)
34 cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim 34
35 mkipks kmicrokdelibs.control 35libkcal/$(MAKEFILE):
36 mkipks korganizer.control 36 @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal"
37 mkipks kaddressbook.control 37 cd libkcal && $(QMAKE) libkcal.pro -o $(MAKEFILE)
38 mkipks kopiemail.control 38sub-libkcal: libkcal/$(MAKEFILE) FORCE
39 mkipks korganizer-alarm.control 39 cd libkcal && $(MAKE) -f $(MAKEFILE)
40 40
41tmake: objects qtcompat/Makefile$(PLATFORM) microkde/Makefile$(PLATFORM) \ 41microkde/$(MAKEFILE):
42 libkcal/Makefile$(PLATFORM) \ 42 @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde"
43 libkdepim/Makefile$(PLATFORM) korganizer/Makefile$(PLATFORM) \ 43 cd microkde && $(QMAKE) microkde.pro -o $(MAKEFILE)
44 kalarmd/Makefile$(PLATFORM) \ 44sub-microkde: microkde/$(MAKEFILE) FORCE
45 libical/src/libical/Makefile$(PLATFORM) \ 45 cd microkde && $(MAKE) -f $(MAKEFILE)
46 libical/src/libicalss/Makefile$(PLATFORM) \ 46
47 kabc/Makefile$(PLATFORM) \ 47libkdepim/$(MAKEFILE):
48 kabc/converter/opie/Makefile$(PLATFORM) \ 48 @$(CHK_DIR_EXISTS) "libkdepim" || $(MKDIR) "libkdepim"
49 kaddressbook/xxport/opie/Makefile$(PLATFORM) \ 49 cd libkdepim && $(QMAKE) libkdepim.pro -o $(MAKEFILE)
50 kabc/formats/binary/Makefile$(PLATFORM) \ 50sub-libkdepim: libkdepim/$(MAKEFILE) FORCE
51 kabc/plugins/file/Makefile$(PLATFORM) \ 51 cd libkdepim && $(MAKE) -f $(MAKEFILE)
52 kabc/plugins/dir/Makefile$(PLATFORM) \ 52
53 kabc/plugins/ldap/Makefile$(PLATFORM) \ 53kabc/$(MAKEFILE):
54 kabc/plugins/opie/Makefile$(PLATFORM) \ 54 @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc"
55 kaddressbook/Makefile$(PLATFORM) \ 55 cd kabc && $(QMAKE) kabc.pro -o $(MAKEFILE)
56 kmicromail/Makefile$(PLATFORM) \ 56sub-kabc: kabc/$(MAKEFILE) FORCE
57 kmicromail/libetpan/Makefile$(PLATFORM) \ 57 cd kabc && $(MAKE) -f $(MAKEFILE)
58 kmicromail/libmailwrapper/Makefile$(PLATFORM) 58
59 59korganizer/$(MAKEFILE):
60 60 @$(CHK_DIR_EXISTS) "korganizer" || $(MKDIR) "korganizer"
61 61 cd korganizer && $(QMAKE) korganizer.pro -o $(MAKEFILE)
62qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro 62sub-korganizer: korganizer/$(MAKEFILE) FORCE
63 cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) 63 cd korganizer && $(MAKE) -f $(MAKEFILE)
64 64
65microkde/Makefile$(PLATFORM): microkde/microkdeE.pro 65kaddressbook/$(MAKEFILE):
66 cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) 66 @$(CHK_DIR_EXISTS) "kaddressbook" || $(MKDIR) "kaddressbook"
67 67 cd kaddressbook && $(QMAKE) kaddressbook.pro -o $(MAKEFILE)
68libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro 68sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE
69 cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) 69 cd kaddressbook && $(MAKE) -f $(MAKEFILE)
70 70
71 71kabc/plugins/file/$(MAKEFILE):
72libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro 72 @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file"
73 cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) 73 cd kabc/plugins/file && $(QMAKE) file.pro -o $(MAKEFILE)
74 74sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE
75kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro 75 cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE)
76 cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) 76
77 77kabc/plugins/dir/$(MAKEFILE):
78korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro 78 @$(CHK_DIR_EXISTS) "kabc/plugins/dir" || $(MKDIR) "kabc/plugins/dir"
79 cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) 79 cd kabc/plugins/dir && $(QMAKE) dir.pro -o $(MAKEFILE)
80 80sub-kabc-plugins-dir: kabc/plugins/dir/$(MAKEFILE) FORCE
81libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro 81 cd kabc/plugins/dir && $(MAKE) -f $(MAKEFILE)
82 cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) 82
83 83Makefile: kopi-desktop.pro /usr/lib/qt3/mkspecs/default/qmake.conf
84libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro 84 $(QMAKE) -o Makefile kopi-desktop.pro
85 cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) 85qmake: qmake_all
86 86 @$(QMAKE) -o Makefile kopi-desktop.pro
87kabc/Makefile$(PLATFORM): kabc/kabcE.pro 87
88 cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) 88all: $(SUBTARGETS)
89 89qmake_all: libical/$(MAKEFILE) libkcal/$(MAKEFILE) microkde/$(MAKEFILE) libkdepim/$(MAKEFILE) kabc/$(MAKEFILE) korganizer/$(MAKEFILE) kaddressbook/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/dir/$(MAKEFILE)
90kabc/converter/opie/Makefile$(PLATFORM): kabc/converter/opie/opieconverterE.pro 90 ( [ -d libical ] && cd libical ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
91 cd kabc/converter/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieconverterE.pro -o Makefile$(PLATFORM) 91 ( [ -d libkcal ] && cd libkcal ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
92 92 ( [ -d microkde ] && cd microkde ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
93kaddressbook/xxport/opie/Makefile$(PLATFORM): kaddressbook/xxport/opie/opieE.pro 93 ( [ -d libkdepim ] && cd libkdepim ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
94 cd kaddressbook/xxport/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieE.pro -o Makefile$(PLATFORM) 94 ( [ -d kabc ] && cd kabc ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
95 95 ( [ -d korganizer ] && cd korganizer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
96kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro 96 ( [ -d kaddressbook ] && cd kaddressbook ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
97 cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) 97 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
98 98 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
99kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/kabc_fileE.pro 99clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE
100 cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_fileE.pro -o Makefile$(PLATFORM) 100 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; ) || true
101 101 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; ) || true
102kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/kabc_dirE.pro 102 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; ) || true
103 cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_dirE.pro -o Makefile$(PLATFORM) 103 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; ) || true
104 104 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; ) || true
105kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/kabc_ldapE.pro 105 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; ) || true
106 cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_ldapE.pro -o Makefile$(PLATFORM) 106 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; ) || true
107 107 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true
108kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/kabc_opieE.pro 108 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; ) || true
109 cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_opieE.pro -o Makefile$(PLATFORM) 109uninstall_subdirs: qmake_all FORCE
110 110 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
111 111 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
112kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro 112 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
113 cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) 113 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
114 114 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
115 115 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
116kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro 116 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
117 cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM) 117 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
118kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro 118 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
119 cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM) 119install_subdirs: qmake_all FORCE
120kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro 120 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) install; ) || true
121 cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM) 121 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) install; ) || true
122 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) install; ) || true
123 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) install; ) || true
124 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) install; ) || true
125 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) install; ) || true
126 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) install; ) || true
127 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true
128 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) install; ) || true
129distclean: qmake_all FORCE
130 ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
131 ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
132 ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
133 ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
134 ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
135 ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
136 ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
137 ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
138 ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
139
140install: install_subdirs
141
142uninstall: uninstall_subdirs
143
144FORCE:
122 145