components/grails/Makefile
branchs11-update
changeset 4376 f3801994dee3
parent 3996 20c0f21bbe1e
child 7811 9126e6f58cd8
--- a/components/grails/Makefile	Thu May 28 03:17:48 2015 -0700
+++ b/components/grails/Makefile	Fri May 29 13:29:35 2015 -0700
@@ -39,6 +39,14 @@
 
 include $(WS_MAKE_RULES)/prep.mk
 include $(WS_MAKE_RULES)/ant.mk
+
+# Need to package the .jar files we've built, not the ones included in
+# the source tarball.  So we need $(BUILD_DIR_32) added to $(PKG_PROTO_DIRS)
+# but it has to come at the beginning not the end, so we set it before we
+# include ips.mk.
+
+PKG_PROTO_DIRS = $(BUILD_DIR_32)
+
 include $(WS_MAKE_RULES)/ips.mk
 
 # Make sure we use the specially modified versions of grails and grails-debug
@@ -49,11 +57,6 @@
 COMPONENT_PRE_BUILD_ACTION = $(MKDIR) $(@D)/tmp 
 COMPONENT_BUILD_ENV += "ANT_OPTS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
 
-# Need to package the .jar files we've built, not the ones included in
-# the source tarball.
-PKG_PROTO_DIRS = $(BUILD_DIR_32) $(MANGLED_DIR) $(PROTO_DIR) $(@D) \
-	$(COMPONENT_DIR) $(COMPONENT_SRC)
-
 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
 
 # common targets