summaryrefslogtreecommitdiff
path: root/sw/Makefile
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
commit000dccdad6de998162fcdf942f0e14c729befd44 (patch)
tree95575dc5931debb5847e2afa266522764da0ace0 /sw/Makefile
parent10572ecb72031ed14674e51da33350f287878212 (diff)
CWS gnumake2: module reorg
Diffstat (limited to 'sw/Makefile')
-rw-r--r--sw/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/Makefile b/sw/Makefile
index 9ab4b8ba83f4..60d34122e271 100644
--- a/sw/Makefile
+++ b/sw/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: