make-rules/ips.mk
branchs11-update
changeset 2881 8cae3c148a42
parent 2855 576d5a7857b7
child 2910 f8b8cbc43356
--- a/make-rules/ips.mk	Mon Dec 30 23:00:53 2013 -0800
+++ b/make-rules/ips.mk	Tue Dec 31 09:16:32 2013 -0800
@@ -90,6 +90,8 @@
 PKG_MACROS +=		COMPONENT_HG_REV=$(COMPONENT_HG_REV)
 PKG_MACROS +=		COMPONENT_NAME=$(COMPONENT_NAME)
 PKG_MACROS +=		TPNO=$(TPNO)
+PKG_MACROS +=		PYTHON_2.6_ONLY=\#
+PKG_MACROS +=		PYTHON_2.7_ONLY=\#
 
 PKG_OPTIONS +=		$(PKG_MACROS:%=-D %)
 
@@ -172,6 +174,8 @@
 # Define and execute a macro that generates a rule to create a manifest for a
 # python module specific to a particular version of the python runtime.
 define python-manifest-rule
+$(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).mogrified: PKG_MACROS += PYTHON_$(1)_ONLY=
+
 $(MANIFEST_BASE)-%-$(shell echo $(1) | tr -d .).p5m: %-PYVER.p5m
 	$(PKGMOGRIFY) -D PYVER=$(1) -D PYV=$(shell echo $(1) | tr -d .) $$< > [email protected]
 endef