180 |
180 |
181 # A rule to create a helper transform package for python, that will insert the |
181 # A rule to create a helper transform package for python, that will insert the |
182 # appropriate conditional dependencies into a python library's |
182 # appropriate conditional dependencies into a python library's |
183 # runtime-version-generic package to pull in the version-specific bits when the |
183 # runtime-version-generic package to pull in the version-specific bits when the |
184 # corresponding version of python is on the system. |
184 # corresponding version of python is on the system. |
185 $(WS_TOP)/transforms/mkgeneric-python: $(WS_TOP)/make-rules/shared-macros.mk |
185 $(BUILD_DIR)/mkgeneric-python: $(WS_TOP)/make-rules/shared-macros.mk |
186 $(RM) $@ |
186 $(RM) $@ |
187 $(foreach ver,$(shell echo $(PYTHON_VERSIONS) | tr -d .), \ |
187 $(foreach ver,$(shell echo $(PYTHON_VERSIONS) | tr -d .), \ |
188 $(call mkgeneric,runtime/python,$(ver))) |
188 $(call mkgeneric,runtime/python,$(ver))) |
189 |
189 |
190 # Build Python version-wrapping manifests from the generic version. |
190 # Build Python version-wrapping manifests from the generic version. |
191 $(MANIFEST_BASE)-%.p5m: %-PYVER.p5m $(WS_TOP)/transforms/mkgeneric-python |
191 $(MANIFEST_BASE)-%.p5m: %-PYVER.p5m $(BUILD_DIR)/mkgeneric-python |
192 $(PKGMOGRIFY) -D PYV=### $(WS_TOP)/transforms/mkgeneric-python \ |
192 $(PKGMOGRIFY) -D PYV=### $(BUILD_DIR)/mkgeneric-python \ |
193 $(WS_TOP)/transforms/mkgeneric $< > $@ |
193 $(WS_TOP)/transforms/mkgeneric $< > $@ |
194 if [ -f $*-GENFRAG.p5m ]; then cat $*-GENFRAG.p5m >> $@; fi |
194 if [ -f $*-GENFRAG.p5m ]; then cat $*-GENFRAG.p5m >> $@; fi |
195 |
195 |
196 # Define and execute a macro that generates a rule to create a manifest for a |
196 # Define and execute a macro that generates a rule to create a manifest for a |
197 # perl module specific to a particular version of the perl runtime. |
197 # perl module specific to a particular version of the perl runtime. |
204 |
204 |
205 # A rule to create a helper transform package for perl, that will insert the |
205 # A rule to create a helper transform package for perl, that will insert the |
206 # appropriate conditional dependencies into a perl library's |
206 # appropriate conditional dependencies into a perl library's |
207 # runtime-version-generic package to pull in the version-specific bits when the |
207 # runtime-version-generic package to pull in the version-specific bits when the |
208 # corresponding version of perl is on the system. |
208 # corresponding version of perl is on the system. |
209 $(WS_TOP)/transforms/mkgeneric-perl: $(WS_TOP)/make-rules/shared-macros.mk |
209 $(BUILD_DIR)/mkgeneric-perl: $(WS_TOP)/make-rules/shared-macros.mk |
210 $(RM) $@ |
210 $(RM) $@ |
211 $(foreach ver,$(shell echo $(PERL_VERSIONS) | tr -d .), \ |
211 $(foreach ver,$(shell echo $(PERL_VERSIONS) | tr -d .), \ |
212 $(call mkgeneric,runtime/perl,$(ver))) |
212 $(call mkgeneric,runtime/perl,$(ver))) |
213 |
213 |
214 # Build Perl version-wrapping manifests from the generic version. |
214 # Build Perl version-wrapping manifests from the generic version. |
215 $(MANIFEST_BASE)-%.p5m: %-PERLVER.p5m $(WS_TOP)/transforms/mkgeneric-perl |
215 $(MANIFEST_BASE)-%.p5m: %-PERLVER.p5m $(BUILD_DIR)/mkgeneric-perl |
216 $(PKGMOGRIFY) -D PLV=### $(WS_TOP)/transforms/mkgeneric-perl \ |
216 $(PKGMOGRIFY) -D PLV=### $(BUILD_DIR)/mkgeneric-perl \ |
217 $(WS_TOP)/transforms/mkgeneric $< > $@ |
217 $(WS_TOP)/transforms/mkgeneric $< > $@ |
218 if [ -f $*-GENFRAG.p5m ]; then cat $*-GENFRAG.p5m >> $@; fi |
218 if [ -f $*-GENFRAG.p5m ]; then cat $*-GENFRAG.p5m >> $@; fi |
219 |
219 |
220 # mogrify non-parameterized manifests |
220 # mogrify non-parameterized manifests |
221 $(MANIFEST_BASE)-%.mogrified: %.p5m $(BUILD_DIR) |
221 $(MANIFEST_BASE)-%.mogrified: %.p5m $(BUILD_DIR) |