Make the alternative layout rule cope with file pragmas
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index 346e561..706136b 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -717,6 +717,11 @@ install : install_mingw
 install_mingw : $(INPLACE_MINGW)
        "$(CP)" -Rp $(INPLACE_MINGW) $(prefix)
 
+install : install_perl
+.PHONY: install_perl
+install_perl : $(INPLACE_PERL)
+       "$(CP)" -Rp $(INPLACE_PERL) $(prefix)
+
 endif # Windows
 
 ifneq "$(BINDIST)" "YES"
@@ -1081,6 +1086,15 @@ SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR)
 endif
 
 # -----------------------------------------------------------------------------
+# sdisting libraries
+
+# Use manually, with e.g.:
+#     make sdist_directory
+
+sdist_%:
+       inplace/bin/ghc-cabal sdist libraries/$* dist-install
+
+# -----------------------------------------------------------------------------
 # Cleaning
 
 .PHONY: clean