X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rules%2Fbuild-perl.mk;h=301d84860c68614e3162a7a3ada99490d683109b;hb=e11c554e94c39223ea55991a552ccb244dfe4364;hp=cfa71cc53def2aecba328b1b20a7a511945a73d8;hpb=484511cebe6055c13bedf6b9c773f96ae9d63dc3;p=ghc-hetmet.git diff --git a/rules/build-perl.mk b/rules/build-perl.mk index cfa71cc..301d848 100644 --- a/rules/build-perl.mk +++ b/rules/build-perl.mk @@ -19,6 +19,8 @@ # $(eval $(call build-perl,driver/mangler,dist)) define build-perl +$(call trace, build-perl($1,$2)) +$(call profStart, build-perl($1,$2)) # $1 = dir # $2 = distdir @@ -45,6 +47,7 @@ $1/$2/$$($1_$2_PROG): $1/$2/$$($1_$2_PROG).prl "$$(RM)" $$(RM_OPTS) $$@ echo '#!$$(PERL)' >> $$@ echo '$$$$TARGETPLATFORM = "$$(TARGETPLATFORM)";' >> $$@ + echo '$$$$TABLES_NEXT_TO_CODE = "$(GhcEnableTablesNextToCode)";' >> $$@ cat $$< >> $$@ $$($1_$2_INPLACE): $1/$2/$$($1_$2_PROG) | $$$$(dir $$$$@)/. @@ -58,9 +61,10 @@ install: install_$1_$2 .PHONY: install_$1_$2 install_$1_$2: $1/$2/$$($1_$2_PROG) - $$(INSTALL_DIR) "$$($1_$2_INSTALL_IN)" - $$(INSTALL_SCRIPT) $$(INSTALL_OPTS) $$< "$$($1_$2_INSTALL_IN)" + $$(call INSTALL_DIR,"$$($1_$2_INSTALL_IN)") + $$(call INSTALL_SCRIPT,$$(INSTALL_OPTS),$$<,"$$($1_$2_INSTALL_IN)") endif endif +$(call profEnd, build-perl($1,$2)) endef