summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <b_michaelsen@openoffice.org>2010-06-26 01:29:37 +0200
committerBjoern Michaelsen <b_michaelsen@openoffice.org>2010-06-26 01:29:37 +0200
commit95f3d4c562939999afe323aca72ac070b466e15f (patch)
treef2a58bc85e1868ca84cfe148f6b2b40b69cf480d
parent20942b145dddc64e3af471ba13710e37f8c60ebb (diff)
CWS gnumake2: module reorg
-rw-r--r--framework/AllLangResTarget_fwe.mk (renamed from framework/prj/target_res_fwe.mk)0
-rw-r--r--framework/Library_fwe.mk (renamed from framework/prj/target_lib_fwe.mk)0
-rw-r--r--framework/Library_fwi.mk (renamed from framework/prj/target_lib_fwi.mk)0
-rw-r--r--framework/Library_fwk.mk (renamed from framework/prj/target_lib_fwk.mk)0
-rw-r--r--framework/Library_fwl.mk (renamed from framework/prj/target_lib_fwl.mk)0
-rw-r--r--framework/Library_fwm.mk (renamed from framework/prj/target_lib_fwm.mk)0
-rw-r--r--framework/Makefile9
-rw-r--r--framework/Module_framework.mk (renamed from framework/prj/target_module_framework.mk)38
-rw-r--r--framework/Package_dtd.mk (renamed from framework/prj/target_package_dtd.mk)0
-rw-r--r--framework/Package_inc.mk (renamed from framework/prj/target_package_inc.mk)0
-rw-r--r--framework/Package_uiconfig.mk (renamed from framework/prj/target_package_uiconfig.mk)0
-rw-r--r--framework/Package_unotypes.mk (renamed from framework/prj/target_package_unotypes.mk)0
-rw-r--r--sfx2/AllLangResTarget_sfx2.mk (renamed from sfx2/prj/target_res_sfx2.mk)0
-rw-r--r--sfx2/Library_qstart.mk (renamed from sfx2/prj/target_lib_qstart.mk)0
-rw-r--r--sfx2/Library_sfx2.mk (renamed from sfx2/prj/target_lib_sfx2.mk)0
-rw-r--r--sfx2/Makefile9
-rw-r--r--sfx2/Module_sfx2.mk (renamed from sfx2/prj/target_module_sfx2.mk)18
-rw-r--r--sfx2/Package_inc.mk (renamed from sfx2/prj/target_package_inc.mk)0
-rw-r--r--sfx2/Package_sdi.mk (renamed from sfx2/prj/target_package_sdi.mk)0
-rw-r--r--xmloff/Library_xo.mk (renamed from xmloff/prj/target_lib_xo.mk)0
-rw-r--r--xmloff/Library_xof.mk (renamed from xmloff/prj/target_lib_xof.mk)0
-rw-r--r--xmloff/Makefile9
-rw-r--r--xmloff/Module_xmloff.mk (renamed from xmloff/prj/target_module_xmloff.mk)18
-rw-r--r--xmloff/Package_dtd.mk (renamed from xmloff/prj/target_package_dtd.mk)0
-rw-r--r--xmloff/Package_inc.mk (renamed from xmloff/prj/target_package_inc.mk)0
25 files changed, 41 insertions, 60 deletions
diff --git a/framework/prj/target_res_fwe.mk b/framework/AllLangResTarget_fwe.mk
index 031cb24117d7..031cb24117d7 100644
--- a/framework/prj/target_res_fwe.mk
+++ b/framework/AllLangResTarget_fwe.mk
diff --git a/framework/prj/target_lib_fwe.mk b/framework/Library_fwe.mk
index 718e9c38ea22..718e9c38ea22 100644
--- a/framework/prj/target_lib_fwe.mk
+++ b/framework/Library_fwe.mk
diff --git a/framework/prj/target_lib_fwi.mk b/framework/Library_fwi.mk
index 0e00df9d8300..0e00df9d8300 100644
--- a/framework/prj/target_lib_fwi.mk
+++ b/framework/Library_fwi.mk
diff --git a/framework/prj/target_lib_fwk.mk b/framework/Library_fwk.mk
index 8ff8adb4e5fb..8ff8adb4e5fb 100644
--- a/framework/prj/target_lib_fwk.mk
+++ b/framework/Library_fwk.mk
diff --git a/framework/prj/target_lib_fwl.mk b/framework/Library_fwl.mk
index f3ec59fd6c61..f3ec59fd6c61 100644
--- a/framework/prj/target_lib_fwl.mk
+++ b/framework/Library_fwl.mk
diff --git a/framework/prj/target_lib_fwm.mk b/framework/Library_fwm.mk
index 56a6a9f74f6b..56a6a9f74f6b 100644
--- a/framework/prj/target_lib_fwm.mk
+++ b/framework/Library_fwm.mk
diff --git a/framework/Makefile b/framework/Makefile
index 9ab4b8ba83f4..60d34122e271 100644
--- a/framework/Makefile
+++ b/framework/Makefile
@@ -25,12 +25,13 @@
#
#*************************************************************************
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set)
+endif
+
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
-
-gb_CURRENT_MODULE := $(lastword $(subst /, ,$(dir $(realpath $(firstword $(MAKEFILE_LIST))))))
-
-$(eval $(call gb_Module_make_global_targets,$(gb_CURRENT_MODULE)))
+$(eval $(call gb_Module_make_global_targets))
# vim: set noet sw=4 ts=4:
diff --git a/framework/prj/target_module_framework.mk b/framework/Module_framework.mk
index 86a30a0b3e45..28b2e087b60f 100644
--- a/framework/prj/target_module_framework.mk
+++ b/framework/Module_framework.mk
@@ -25,31 +25,19 @@
#
#*************************************************************************
-include $(foreach targetdef,\
- lib_fwe \
- lib_fwi \
- lib_fwk \
- lib_fwl \
- lib_fwm \
- package_dtd \
- package_inc \
- package_uiconfig \
- package_unotypes \
- res_fwe \
-,$(SRCDIR)/framework/prj/target_$(targetdef).mk)
+$(eval $(call gb_Module_Module,framework))
-
-$(eval $(call gb_Module_Module,framework,\
- $(call gb_AllLangResTarget_get_target,fwe) \
- $(call gb_Library_get_target,fwe) \
- $(call gb_Library_get_target,fwi) \
- $(call gb_Library_get_target,fwk) \
- $(call gb_Library_get_target,fwl) \
- $(call gb_Library_get_target,fwm) \
- $(call gb_Library_get_target,fwe) \
- $(call gb_Package_get_target,framework_dtd) \
- $(call gb_Package_get_target,framework_inc) \
- $(call gb_Package_get_target,framework_uiconfig) \
- $(call gb_Package_get_target,framework_unotypes) \
+$(eval $(call gb_Module_add_targets,framework,\
+ AllLangResTarget_fwe \
+ Library_fwe \
+ Library_fwi \
+ Library_fwk \
+ Library_fwl \
+ Library_fwm \
+ Package_dtd \
+ Package_inc \
+ Package_uiconfig \
+ Package_unotypes \
))
+
# vim: set noet ts=4 sw=4:
diff --git a/framework/prj/target_package_dtd.mk b/framework/Package_dtd.mk
index db23783c4ef9..db23783c4ef9 100644
--- a/framework/prj/target_package_dtd.mk
+++ b/framework/Package_dtd.mk
diff --git a/framework/prj/target_package_inc.mk b/framework/Package_inc.mk
index 8cb41e542265..8cb41e542265 100644
--- a/framework/prj/target_package_inc.mk
+++ b/framework/Package_inc.mk
diff --git a/framework/prj/target_package_uiconfig.mk b/framework/Package_uiconfig.mk
index c92344a153f5..c92344a153f5 100644
--- a/framework/prj/target_package_uiconfig.mk
+++ b/framework/Package_uiconfig.mk
diff --git a/framework/prj/target_package_unotypes.mk b/framework/Package_unotypes.mk
index 01069ae93dc4..01069ae93dc4 100644
--- a/framework/prj/target_package_unotypes.mk
+++ b/framework/Package_unotypes.mk
diff --git a/sfx2/prj/target_res_sfx2.mk b/sfx2/AllLangResTarget_sfx2.mk
index b51079559e82..b51079559e82 100644
--- a/sfx2/prj/target_res_sfx2.mk
+++ b/sfx2/AllLangResTarget_sfx2.mk
diff --git a/sfx2/prj/target_lib_qstart.mk b/sfx2/Library_qstart.mk
index 2da2ada42db3..2da2ada42db3 100644
--- a/sfx2/prj/target_lib_qstart.mk
+++ b/sfx2/Library_qstart.mk
diff --git a/sfx2/prj/target_lib_sfx2.mk b/sfx2/Library_sfx2.mk
index 9c1dc852e69c..9c1dc852e69c 100644
--- a/sfx2/prj/target_lib_sfx2.mk
+++ b/sfx2/Library_sfx2.mk
diff --git a/sfx2/Makefile b/sfx2/Makefile
index 9ab4b8ba83f4..60d34122e271 100644
--- a/sfx2/Makefile
+++ b/sfx2/Makefile
@@ -25,12 +25,13 @@
#
#*************************************************************************
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set)
+endif
+
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
-
-gb_CURRENT_MODULE := $(lastword $(subst /, ,$(dir $(realpath $(firstword $(MAKEFILE_LIST))))))
-
-$(eval $(call gb_Module_make_global_targets,$(gb_CURRENT_MODULE)))
+$(eval $(call gb_Module_make_global_targets))
# vim: set noet sw=4 ts=4:
diff --git a/sfx2/prj/target_module_sfx2.mk b/sfx2/Module_sfx2.mk
index 3ec4e606795f..087c87bed797 100644
--- a/sfx2/prj/target_module_sfx2.mk
+++ b/sfx2/Module_sfx2.mk
@@ -25,19 +25,13 @@
#
#*************************************************************************
-$(eval $(call gb_Module_Module,sfx2,\
- $(call gb_AllLangResTarget_get_target,sfx) \
- $(call gb_Library_get_target,sfx) \
- $(call gb_Package_get_target,sfx2_inc) \
- $(call gb_Package_get_target,sfx2_sdi) \
-))
-# $(call gb_Library_get_target,qstart) \
+$(eval $(call gb_Module_Module,sfx2))
-$(eval $(call gb_Module_read_includes,sfx2,\
- lib_sfx2 \
- package_inc \
- package_sdi \
- res_sfx2 \
+$(eval $(call gb_Module_add_targets,sfx2,\
+ AllLangResTarget_sfx2 \
+ Library_sfx2 \
+ Package_inc \
+ Package_sdi \
))
# lib_qstart \
diff --git a/sfx2/prj/target_package_inc.mk b/sfx2/Package_inc.mk
index dd836b286f8b..dd836b286f8b 100644
--- a/sfx2/prj/target_package_inc.mk
+++ b/sfx2/Package_inc.mk
diff --git a/sfx2/prj/target_package_sdi.mk b/sfx2/Package_sdi.mk
index 63f2138adf4f..63f2138adf4f 100644
--- a/sfx2/prj/target_package_sdi.mk
+++ b/sfx2/Package_sdi.mk
diff --git a/xmloff/prj/target_lib_xo.mk b/xmloff/Library_xo.mk
index 5a13d5053f93..5a13d5053f93 100644
--- a/xmloff/prj/target_lib_xo.mk
+++ b/xmloff/Library_xo.mk
diff --git a/xmloff/prj/target_lib_xof.mk b/xmloff/Library_xof.mk
index 320aafbf12fe..320aafbf12fe 100644
--- a/xmloff/prj/target_lib_xof.mk
+++ b/xmloff/Library_xof.mk
diff --git a/xmloff/Makefile b/xmloff/Makefile
index 9ab4b8ba83f4..60d34122e271 100644
--- a/xmloff/Makefile
+++ b/xmloff/Makefile
@@ -25,12 +25,13 @@
#
#*************************************************************************
+ifeq ($(strip $(SOLARENV)),)
+$(error No environment set)
+endif
+
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
-
-gb_CURRENT_MODULE := $(lastword $(subst /, ,$(dir $(realpath $(firstword $(MAKEFILE_LIST))))))
-
-$(eval $(call gb_Module_make_global_targets,$(gb_CURRENT_MODULE)))
+$(eval $(call gb_Module_make_global_targets))
# vim: set noet sw=4 ts=4:
diff --git a/xmloff/prj/target_module_xmloff.mk b/xmloff/Module_xmloff.mk
index 6a90531db467..eacc83068dad 100644
--- a/xmloff/prj/target_module_xmloff.mk
+++ b/xmloff/Module_xmloff.mk
@@ -25,20 +25,16 @@
#
#*************************************************************************
-$(eval $(call gb_Module_Module,xmloff,\
- $(call gb_Library_get_target,xo) \
- $(call gb_Library_get_target,xof) \
- $(call gb_Package_get_target,xmloff_dtd) \
- $(call gb_Package_get_target,xmloff_inc) \
-))
+$(eval $(call gb_Module_Module,xmloff))
-$(eval $(call gb_Module_read_includes,xmloff,\
- lib_xo \
- lib_xof \
- package_dtd \
- package_inc \
+$(eval $(call gb_Module_add_targets,xmloff,\
+ Library_xo \
+ Library_xof \
+ Package_dtd \
+ Package_inc \
))
#todo: map file
#todo: xmlkywd.lib - built, but never used?!
+# vim: set noet ts=4 sw=4:
diff --git a/xmloff/prj/target_package_dtd.mk b/xmloff/Package_dtd.mk
index fbfbe4a1400d..fbfbe4a1400d 100644
--- a/xmloff/prj/target_package_dtd.mk
+++ b/xmloff/Package_dtd.mk
diff --git a/xmloff/prj/target_package_inc.mk b/xmloff/Package_inc.mk
index cd0500c6b55d..cd0500c6b55d 100644
--- a/xmloff/prj/target_package_inc.mk
+++ b/xmloff/Package_inc.mk