Add a rule to allow us to sdist libraries easily
authorIan Lynagh <igloo@earth.li>
Thu, 19 Nov 2009 16:05:27 +0000 (16:05 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 19 Nov 2009 16:05:27 +0000 (16:05 +0000)
ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 346e561..3dece18 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -1081,6 +1081,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