make-rules/ant.mk
changeset 1352 1358a1e1ff4c
parent 261 f7fc4962fa91
child 2164 b580bc10e31a
child 3996 20c0f21bbe1e
--- a/make-rules/ant.mk	Tue Jun 18 13:15:45 2013 -0700
+++ b/make-rules/ant.mk	Tue Jun 18 15:52:28 2013 -0700
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
 #
 
 ANT=/usr/bin/ant
@@ -32,6 +32,9 @@
 	(cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
 		$(ANT) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
 	$(COMPONENT_POST_BUILD_ACTION)
+ifeq   ($(strip $(PARFAIT_BUILD)),yes)
+	-$(PARFAIT) $(@D)
+endif
 	$(TOUCH) [email protected]
 
 COMPONENT_INSTALL_ENV += JAVA_HOME="$(JAVA_HOME)"
@@ -43,5 +46,12 @@
 	$(COMPONENT_POST_INSTALL_ACTION)
 	$(TOUCH) [email protected]
 
+ifeq   ($(strip $(PARFAIT_BUILD)),yes)
+parfait: build
+else
+parfait:
+	$(MAKE) PARFAIT_BUILD=yes parfait
+endif
+
 clean::
 	$(RM) -r $(SOURCE_DIR) $(BUILD_DIR)