make/InitSupport.gmk
changeset 47313 eb28be8f935d
parent 47296 f83c45751d58
child 47346 ea082b202a23
--- a/make/InitSupport.gmk	Wed Oct 04 10:54:18 2017 -0700
+++ b/make/InitSupport.gmk	Thu Oct 05 11:02:18 2017 +0200
@@ -35,8 +35,9 @@
 ifeq ($(HAS_SPEC),)
 
   # Include the corresponding closed file, if present.
-  # Normal hook mechanism cannot be used since we have no SPEC.
-  -include $(topdir)/../closed/make/InitSupport.gmk
+  ifneq ($(CUSTOM_MAKE_DIR), )
+    -include $(CUSTOM_MAKE_DIR)/InitSupport.gmk
+  endif
 
   ##############################################################################
   # Helper functions for the initial part of Init.gmk, before the spec file is