Temporary fix to the Makefile
authorAnders Mörtberg <andersmortberg@gmail.com>
Sun, 25 Oct 2015 22:28:05 +0000 (18:28 -0400)
committerAnders Mörtberg <andersmortberg@gmail.com>
Sun, 25 Oct 2015 22:28:05 +0000 (18:28 -0400)
GNUmakefile

index 68dd6b6226c917e1b894f8c7d3864164de71c8bc..03a41d70edb0294471bc9ba4e4ef5e569327042b 100644 (file)
@@ -35,6 +35,7 @@ build-Makefile: $(INPUT) $(GRAMMAR_HS_FILES)
        $(GHC) -M $^
 
 include Makefile
+
 %.hi %.o: %.hs
        $(GHC) $(GHCOPTIONS) $<
        @ touch $*.hi $*.o
@@ -43,8 +44,10 @@ include Makefile
 %.hs: %.x
        alex -g $<
 
-run-bnfc $(GRAMMAR_FILES): Exp.cf
+bnfc $(GRAMMAR_FILES): Exp.cf
        bnfc --haskell -d Exp.cf
+       alex -g Exp/Lex.x
+       happy -gca Exp/Par.y
        @ touch $(GRAMMAR_FILES)
 
 TAGS:; hasktags --etags $(INPUT) $(GRAMMAR)