Fill out the osElfTarget definition
[ghc-hetmet.git] / rules / build-perl.mk
index cd23185..301d848 100644 (file)
@@ -20,6 +20,7 @@
 
 define build-perl
 $(call trace, build-perl($1,$2))
+$(call profStart, build-perl($1,$2))
 # $1 = dir
 # $2 = distdir
 
@@ -60,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