Template Haskell: improve lifting for strings
[ghc-hetmet.git] / rules / manual-package-config.mk
index 2eb33b7..298fe47 100644 (file)
@@ -1,3 +1,15 @@
+# -----------------------------------------------------------------------------
+#
+# (c) 2009 The University of Glasgow
+#
+# This file is part of the GHC build system.
+#
+# To understand how the build system works and how to modify it, see
+#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
+#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
+#
+# -----------------------------------------------------------------------------
+
 
 define manual-package-config # args: $1 = dir
 
@@ -24,10 +36,9 @@ $1/package.conf.install:
        grep -v '^#pragma GCC' | \
        sed -e 's/""//g' -e 's/:[       ]*,/: /g' >$$@
 
-clean : clean_$1
-.PHONY: clean_$1
-clean_$1 : clean_$1_package.conf
+distclean : clean_$1_package.conf
 .PHONY: clean_$1_package.conf
 clean_$1_package.conf :
        $(RM) $1/package.conf.install $1/package.conf.inplace
+
 endef