Commit 5288de39 authored by Tadej Borovšak's avatar Tadej Borovšak
Browse files

Add makefile automation

parent e6cb8d64
ALEX := alex
HAPPY := happy
RUN := runhaskell
GHCI := ghci
HASKELL_SOURCES := \
Imp_AbsSyntax.hs \
Imp_Evaluator.hs \
Imp_Interpreter.hs \
Imp_Lex.hs \
Imp_Parse.hs \
Imp_State.hs
TEST_HASHELL_SOURCES := \
$(HASKELL_SOURCES) \
Imp_Test.hs
all: test run
test: $(TEST_HASKELL_SOURCES)
$(RUN) Imp_Test.hs
run: $(HASKELL_SOURCES)
$(GHCI) Imp_Interpreter.hs
# Template rules
%.hs:: %.x
$(ALEX) $^
%.hs:: %.y
$(HAPPY) $^
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment