author | zecke <zecke> | 2003-04-20 18:11:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-04-20 18:11:17 (UTC) |
commit | ca3cd49d65353584bfe85755ef2885b049d25d33 (patch) (unidiff) | |
tree | 4a6cf7ec233e2531e76dd191ea2e65da66eb9460 | |
parent | 606f5d9cd2ecba4df175bc722621e4e4df3bc516 (diff) | |
download | opie-ca3cd49d65353584bfe85755ef2885b049d25d33.zip opie-ca3cd49d65353584bfe85755ef2885b049d25d33.tar.gz opie-ca3cd49d65353584bfe85755ef2885b049d25d33.tar.bz2 |
Add opie-lupdate and opie-lrelease as targets
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | include.pro | 7 |
2 files changed, 11 insertions, 1 deletions
@@ -18,103 +18,108 @@ configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPD | |||
18 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) | 18 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) |
19 | # in order to have a full set of config.in files. | 19 | # in order to have a full set of config.in files. |
20 | # .depends depends on $(TOPDIR)/.config | 20 | # .depends depends on $(TOPDIR)/.config |
21 | # everything else depends on .depends, to ensure the dependencies are | 21 | # everything else depends on .depends, to ensure the dependencies are |
22 | # intact. | 22 | # intact. |
23 | # | 23 | # |
24 | # NOTE: The order in which things happen in this makefile is | 24 | # NOTE: The order in which things happen in this makefile is |
25 | # -critical-. Do not rearrange this! | 25 | # -critical-. Do not rearrange this! |
26 | 26 | ||
27 | all : $(TOPDIR)/.config | 27 | all : $(TOPDIR)/.config |
28 | 28 | ||
29 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs | 29 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
30 | 30 | ||
31 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs | 31 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs |
32 | 32 | ||
33 | clean-configs : | 33 | clean-configs : |
34 | @echo "Wiping generated config.in files..." | 34 | @echo "Wiping generated config.in files..." |
35 | @-rm -f $(configs) | 35 | @-rm -f $(configs) |
36 | 36 | ||
37 | -include $(TOPDIR)/.depends.cfgs | 37 | -include $(TOPDIR)/.depends.cfgs |
38 | 38 | ||
39 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) | 39 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
40 | 40 | ||
41 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) | 41 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) |
42 | $(call descend,scripts/kconfig,conf) | 42 | $(call descend,scripts/kconfig,conf) |
43 | @if [ ! -e $@ ]; then \ | 43 | @if [ ! -e $@ ]; then \ |
44 | cp $(TOPDIR)/def-configs/opie $@; \ | 44 | cp $(TOPDIR)/def-configs/opie $@; \ |
45 | fi; | 45 | fi; |
46 | @$(MAKE) -C scripts/kconfig conf; | 46 | @$(MAKE) -C scripts/kconfig conf; |
47 | ./scripts/kconfig/conf -s ./config.in | 47 | ./scripts/kconfig/conf -s ./config.in |
48 | 48 | ||
49 | # config rules must have the $(configs) var defined | 49 | # config rules must have the $(configs) var defined |
50 | # at the time that they run. we must ensure that .depends.cfgs | 50 | # at the time that they run. we must ensure that .depends.cfgs |
51 | # is built and included by the time we reach this point. | 51 | # is built and included by the time we reach this point. |
52 | 52 | ||
53 | xconfig : | 53 | xconfig : |
54 | $(call descend,scripts/kconfig,qconf) | 54 | $(call descend,scripts/kconfig,qconf) |
55 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ | 55 | LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \ |
56 | ./scripts/kconfig/qconf ./config.in | 56 | ./scripts/kconfig/qconf ./config.in |
57 | 57 | ||
58 | menuconfig : scripts/lxdialog/lxdialog | 58 | menuconfig : scripts/lxdialog/lxdialog |
59 | $(call descend,scripts/kconfig,mconf) | 59 | $(call descend,scripts/kconfig,mconf) |
60 | ./scripts/kconfig/mconf ./config.in | 60 | ./scripts/kconfig/mconf ./config.in |
61 | 61 | ||
62 | config : | 62 | config : |
63 | $(call descend,scripts/kconfig,conf) | 63 | $(call descend,scripts/kconfig,conf) |
64 | ./scripts/kconfig/conf ./config.in | 64 | ./scripts/kconfig/conf ./config.in |
65 | 65 | ||
66 | oldconfig : | 66 | oldconfig : |
67 | $(call descend,scripts/kconfig,conf) | 67 | $(call descend,scripts/kconfig,conf) |
68 | ./scripts/kconfig/conf -o ./config.in | 68 | ./scripts/kconfig/conf -o ./config.in |
69 | 69 | ||
70 | randconfig : | 70 | randconfig : |
71 | $(call descend,scripts/kconfig,conf) | 71 | $(call descend,scripts/kconfig,conf) |
72 | ./scripts/kconfig/conf -r ./config.in | 72 | ./scripts/kconfig/conf -r ./config.in |
73 | 73 | ||
74 | allyesconfig : | 74 | allyesconfig : |
75 | $(call descend,scripts/kconfig,conf) | 75 | $(call descend,scripts/kconfig,conf) |
76 | ./scripts/kconfig/conf -y ./config.in | 76 | ./scripts/kconfig/conf -y ./config.in |
77 | 77 | ||
78 | allnoconfig : | 78 | allnoconfig : |
79 | $(call descend,scripts/kconfig,conf) | 79 | $(call descend,scripts/kconfig,conf) |
80 | ./scripts/kconfig/conf -n ./config.in | 80 | ./scripts/kconfig/conf -n ./config.in |
81 | 81 | ||
82 | defconfig : | 82 | defconfig : |
83 | $(call descend,scripts/kconfig,conf) | 83 | $(call descend,scripts/kconfig,conf) |
84 | ./scripts/kconfig/conf -d ./config.in | 84 | ./scripts/kconfig/conf -d ./config.in |
85 | 85 | ||
86 | 86 | ||
87 | export | 87 | export |
88 | 88 | ||
89 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) | 89 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
90 | 90 | ||
91 | export include-config := 1 | 91 | export include-config := 1 |
92 | 92 | ||
93 | -include $(TOPDIR)/.config | 93 | -include $(TOPDIR)/.config |
94 | -include $(TOPDIR)/.depends | 94 | -include $(TOPDIR)/.depends |
95 | 95 | ||
96 | endif | 96 | endif |
97 | 97 | ||
98 | -include $(TOPDIR)/.config.cmd | 98 | -include $(TOPDIR)/.config.cmd |
99 | 99 | ||
100 | SUBDIRS = $(subdir-y) | 100 | SUBDIRS = $(subdir-y) |
101 | 101 | ||
102 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | 102 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
103 | 103 | ||
104 | ifdef CONFIG_OPTIMIZATIONS | 104 | ifdef CONFIG_OPTIMIZATIONS |
105 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) | 105 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
106 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) | 106 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
107 | endif | 107 | endif |
108 | 108 | ||
109 | all clean install ipk: $(SUBDIRS) | 109 | all clean install ipk: $(SUBDIRS) |
110 | 110 | ||
111 | lupdate lrelease: | 111 | lupdate lrelease: |
112 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; | 112 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; |
113 | 113 | ||
114 | opie-lupdate opie-lrelease: | ||
115 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; | ||
116 | |||
114 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \ | 117 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \ |
115 | $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \ | 118 | $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \ |
116 | $(TOPDIR)/library/custom.h | 119 | $(TOPDIR)/library/custom.h |
117 | 120 | ||
118 | clean : $(TOPDIR)/.config | 121 | clean : $(TOPDIR)/.config |
119 | 122 | ||
123 | apidox : doc/generate_apidox | ||
124 | |||
120 | include $(TOPDIR)/Rules.make | 125 | include $(TOPDIR)/Rules.make |
diff --git a/include.pro b/include.pro index 4f1144f..8503aa0 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,72 +1,77 @@ | |||
1 | # make install | 1 | # make install |
2 | 2 | ||
3 | # base opie install path | 3 | # base opie install path |
4 | prefix = /opt/QtPalmtop | 4 | prefix = /opt/QtPalmtop |
5 | 5 | ||
6 | contains( TEMPLATE, lib ) { | 6 | contains( TEMPLATE, lib ) { |
7 | target.path = $$prefix/lib | 7 | target.path = $$prefix/lib |
8 | } | 8 | } |
9 | !contains( TEMPLATE, lib ) { | 9 | !contains( TEMPLATE, lib ) { |
10 | target.path = $$prefix/bin | 10 | target.path = $$prefix/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 $$prefix/pics/$$TARGET | 19 | # images, default is $$prefix/pics/$$TARGET |
20 | pics.path = $$prefix/pics/$$TARGET | 20 | pics.path = $$prefix/pics/$$TARGET |
21 | pics.files = pics/* | 21 | pics.files = pics/* |
22 | INSTALLS += pics | 22 | INSTALLS += pics |
23 | 23 | ||
24 | # sounds, default path is $$prefix/sounds/$$TARGET | 24 | # sounds, default path is $$prefix/sounds/$$TARGET |
25 | sounds.path = $$prefix/sounds/$$TARGET | 25 | sounds.path = $$prefix/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.d/* | 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 = $$prefix/etc/ | 39 | etc.path = $$prefix/etc/ |
40 | etc.files = etc/* | 40 | etc.files = etc/* |
41 | INSTALLS += etc | 41 | INSTALLS += etc |
42 | 42 | ||
43 | apps.path = $$prefix/apps/ | 43 | apps.path = $$prefix/apps/ |
44 | apps.files = apps/* | 44 | apps.files = apps/* |
45 | INSTALLS += apps | 45 | INSTALLS += apps |
46 | 46 | ||
47 | # sounds, default path is $$prefix/sounds/$$TARGET | 47 | # sounds, default path is $$prefix/sounds/$$TARGET |
48 | sounds.path = $$prefix/sounds/$$TARGET | 48 | sounds.path = $$prefix/sounds/$$TARGET |
49 | sounds.files = sounds/* | 49 | sounds.files = sounds/* |
50 | INSTALLS += sounds | 50 | INSTALLS += sounds |
51 | 51 | ||
52 | # anything in nonstandard paths | 52 | # anything in nonstandard paths |
53 | root.path = / | 53 | root.path = / |
54 | root.files = root/* | 54 | root.files = root/* |
55 | INSTALLS += root | 55 | INSTALLS += root |
56 | 56 | ||
57 | # new targets | 57 | # new targets |
58 | opie-lupdate.target = opie-lupdate | ||
59 | opie-lupdate.commands = opie-lupdate -noobsolete $(PRO) | ||
60 | |||
61 | opie-lrelease.target = opie-lrelease | ||
62 | opie-lrelease.commands = opie-lrelease $(PRO) | ||
58 | 63 | ||
59 | lupdate.target = lupdate | 64 | lupdate.target = lupdate |
60 | lupdate.commands = lupdate -noobsolete $(PRO) | 65 | lupdate.commands = lupdate -noobsolete $(PRO) |
61 | 66 | ||
62 | lrelease.target = lrelease | 67 | lrelease.target = lrelease |
63 | lrelease.commands = lrelease $(PRO) | 68 | lrelease.commands = lrelease $(PRO) |
64 | 69 | ||
65 | ipk.target = ipk | 70 | ipk.target = ipk |
66 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | 71 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) |
67 | 72 | ||
68 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk | 73 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease |
69 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib | 74 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib |
70 | QMAKE_LIBDIR += $(OPIEDIR)/lib | 75 | QMAKE_LIBDIR += $(OPIEDIR)/lib |
71 | 76 | ||
72 | include ( $(OPIEDIR)/gen.pro ) | 77 | include ( $(OPIEDIR)/gen.pro ) |