-rename/ParseType.hs : rename/ParseType.y
- @$(RM) rename/ParseType.hs rename/ParseType.hinfo
- $(HAPPY) $(HAPPY_OPTS) -g rename/ParseType.y
- @chmod 444 rename/ParseType.hs
-
-rename/ParseUnfolding.hs : rename/ParseUnfolding.y
- @$(RM) rename/ParseUnfolding.hs rename/ParseUnfolding.hinfo
- $(HAPPY) $(HAPPY_OPTS) -g rename/ParseUnfolding.y
- @chmod 444 rename/ParseUnfolding.hs
-
-#----------------------------------------------------------------------
-#
-# Building the stand-alone parser
-#
-all :: hsp
-
-hsp: parser/printtree.o parser/main.o libhsp.a
- $(CC) -o $@ $(CC_OPTS) $^
-
-CLEAN_FILES += hsp
-#-----------------------------------------------------------------------------
-# Interface files
-
-# LoopHack.lhc is an SLPJ addition to fix a profiling problem. See comments
-# inside it. (compilation is handled by the suffix rules).
-
-#
-# Building the loop breakers from .lhi (0.2x) or .hi-boot (2.xx) files
-#
-ifeq ($(Ghc2_0),YES)
-
-BOOT_HI_STEMS = $(basename $(wildcard */*.hi-boot))
-
-hi-boot ::
- @for n in $(BOOT_HI_STEMS); \
- do \
- echo Creating $$n.hi ; \
- $(RM) $$n.hi ; \
- $(CP) $$n.hi-boot $$n.hi || ( $(RM) $$n.hi && exit 1 ) ; \
- done
-#
-# Have the collector *Loop.hs interface files be generated just after having
-# created the .hi's from the .hi-boot's.
-
-hi-boot :: $(patsubst %.hs,%.hi,$(LOOPS_HS))
-
-else
-%.hi : %.lhi
- $(RM) $@
- $(UNLIT) $< $@ || ( $(RM) $@ && exit 1 )
- @chmod 444 $@
-endif
-
-boot :: hi-boot
+parser/Parser.hs : parser/Parser.y
+ @$(RM) parser/Parser.hs parser/ParseIface.hinfo
+ $(HAPPY) $(HAPPY_OPTS) -g parser/Parser.y
+ @chmod 444 parser/Parser.hs