[project @ 2003-11-15 19:37:13 by panne]
[ghc-hetmet.git] / mk / suffix.mk
index b3bc8fc..3fddbd8 100644 (file)
@@ -140,6 +140,13 @@ endif # BootingFromHc
        $(HAPPY) $(HAPPY_OPTS) $<
 
 #-----------------------------------------------------------------------------
+# Alex Suffix Rules
+#
+
+%.hs : %.x
+       $(ALEX) $(ALEX_OPTS) $<
+
+#-----------------------------------------------------------------------------
 # hsc2hs Suffix Rules
 #
 ifneq "$(BootingFromHc)" "YES"
@@ -227,18 +234,6 @@ endif
        $(FLEX) -t $(FLEX_OPTS) $< > $@
 
 #-----------------------------------------------------------------------------
-# Yacc stuff
-
-%.tab.c %.tab.h : %.y
-       @$(RM) $*.tab.h $*.tab.c y.tab.c y.tab.h y.output
-       $(YACC) $(YACC_OPTS) $<
-       $(MV) y.tab.c $*.tab.c
-       @chmod 444 $*.tab.c
-       $(MV) y.tab.h $*.tab.h
-       @chmod 444 $*.tab.h
-
-
-#-----------------------------------------------------------------------------
 # Runtest rules for calling $(HC) on a single-file Haskell program
 
 %.runtest : %.hs