[project @ 1996-07-25 20:43:49 by partain]
[ghc-hetmet.git] / ghc / mkworld / suffixes-ghc.jm
index 31af401..4d6f419 100644 (file)
@@ -1,4 +1,27 @@
-# line 11 "suffixes-ghc.ljm"
+#if 0
+%************************************************************************
+%*                                                                     *
+\section[mkworld-suffix-ghc]{Suffix rules for @ghc@ project}
+%*                                                                     *
+%************************************************************************
+
+The \tr{ghc} project tends to ask for specific suffix rules on
+a per-directory basis.
+
+\begin{code}
+#endif /* 0 */
 #ifndef SuffixRules_WantStdOnes
 #define SuffixRules_WantStdOnes NO
 #endif
+
+#ifndef UnlitSuffixRule
+#define UnlitSuffixRule(beforesuff,aftersuff)          @@\
+CAT2(beforesuff,aftersuff):                            @@\
+       $(RM) $@                                        @@\
+       $(GHC_UNLIT) $<  $@ || ( $(RM) $@ && exit 1 )   @@\
+       @chmod 444 $@
+#endif /* UnlitSuffixRule */
+
+#if 0
+\end{code}
+#endif /* 0 */