office-gobmx/solenv/gbuild/partial_build.mk
Stephan Bergmann a13c905f8d Revert "Revert "make partial_build work in separate builddir""
This reverts commit 13034c8e44.  The original
presumably works fine for a separate builddir(?), but it erroneously(?) replaced
"lastword MAKEFILE_LIST" with "firstword MAKEFILE_LIST" so "cd <module> &&
make" failed to find config_host.mk; fixed that part now.

Change-Id: Icde8315425dd230544125901de4f3a605b239155
2013-03-26 22:55:43 +01:00

16 lines
349 B
Makefile

ifeq ($(gb_Side),)
gb_Side:=host
endif
ifeq (,$(BUILDDIR))
BUILDDIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))../..
endif
ifeq ($(SOLARENV),)
include $(BUILDDIR)/config_$(gb_Side).mk
endif
gb_PARTIAL_BUILD := T
include $(SOLARENV)/gbuild/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(wildcard $(module_directory)/Module*.mk)))