summaryrefslogtreecommitdiff
path: root/Makefile
Unidiff
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile55
1 files changed, 14 insertions, 41 deletions
diff --git a/Makefile b/Makefile
index b1e76cb..0b4a06b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,13 +9,13 @@ endif
9 9
10noconfig_targets := xconfig menuconfig config oldconfig randconfig \ 10noconfig_targets := xconfig menuconfig config oldconfig randconfig \
11 defconfig allyesconfig allnoconfig allmodconfig \ 11 defconfig allyesconfig allnoconfig allmodconfig \
12 clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ 12 clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \
13 ipks 13 ipks
14 14
15configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/ofileselector/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/libsql/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in 15configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/calc2/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in
16 16
17# $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) 17# $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs)
18# in order to have a full set of config.in files. 18# in order to have a full set of config.in files.
19# .depends depends on $(TOPDIR)/.config 19# .depends depends on $(TOPDIR)/.config
20# everything else depends on .depends, to ensure the dependencies are 20# everything else depends on .depends, to ensure the dependencies are
21# intact. 21# intact.
@@ -59,50 +59,12 @@ $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs)
59 @if [ ! -e $@ ]; then \ 59 @if [ ! -e $@ ]; then \
60 cp $(TOPDIR)/def-configs/opie $@; \ 60 cp $(TOPDIR)/def-configs/opie $@; \
61 fi 61 fi
62 @$(MAKE) -C scripts/kconfig conf 62 @$(MAKE) -C scripts/kconfig conf
63 ./scripts/kconfig/conf -s ./config.in 63 ./scripts/kconfig/conf -s ./config.in
64 64
65# config rules must have the $(configs) var defined
66# at the time that they run. we must ensure that .depends.cfgs
67# is built and included by the time we reach this point.
68
69xconfig :
70 $(call descend,scripts/kconfig,qconf)
71 LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(TOPDIR)/scripts/kconfig \
72 ./scripts/kconfig/qconf ./config.in
73
74menuconfig : $(TOPDIR)/scripts/lxdialog/lxdialog
75 $(call descend,scripts/kconfig,mconf)
76 ./scripts/kconfig/mconf ./config.in
77
78config :
79 $(call descend,scripts/kconfig,conf)
80 ./scripts/kconfig/conf ./config.in
81
82oldconfig :
83 $(call descend,scripts/kconfig,conf)
84 ./scripts/kconfig/conf -o ./config.in
85
86randconfig :
87 $(call descend,scripts/kconfig,conf)
88 ./scripts/kconfig/conf -r ./config.in
89
90allyesconfig :
91 $(call descend,scripts/kconfig,conf)
92 ./scripts/kconfig/conf -y ./config.in
93
94allnoconfig :
95 $(call descend,scripts/kconfig,conf)
96 ./scripts/kconfig/conf -n ./config.in
97
98defconfig :
99 $(call descend,scripts/kconfig,conf)
100 ./scripts/kconfig/conf -d ./config.in
101
102
103export 65export
104 66
105ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) 67ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
106 68
107export include-config := 1 69export include-config := 1
108 70
@@ -116,14 +78,25 @@ SUBDIRS = $(subdir-y)
116 78
117all clean install ipk: $(SUBDIRS) 79all clean install ipk: $(SUBDIRS)
118 80
119lupdate lrelease: 81lupdate lrelease:
120 @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done 82 @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
121 83
122opie-lupdate opie-lrelease: 84opie-lupdate opie-lrelease messages:
123 @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done 85 @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done;
86
87# from kde
88qtmessages:
89 cd $(QTDIR)/src ; \
90 sed -e "s,#define,," xml/qxml.cpp > qxml_clean.cpp ;\
91 find . -name "*.cpp" | grep -v moc_ > list ;\
92 for file in qfiledialog qcolordialog qprintdialog \
93 qurloperator qftp qhttp qlocal qerrormessage; do \
94 grep -v $$file list > list.new && mv list.new list ;\
95 done ;\
96 xgettext -C -ktr -kQT_TRANSLATE_NOOP -n `cat list` -o $(OPIEDIR)/qt-messages.pot
124 97
125$(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \ 98$(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \
126 $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \ 99 $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \
127 $(TOPDIR)/library/custom.h 100 $(TOPDIR)/library/custom.h
128 101
129clean : $(TOPDIR)/.config 102clean : $(TOPDIR)/.config