3 # There's onlt one '$' in the awk script, but we have to double-money
5 PN = $(shell grep 'name:' *.cabal | awk '{ print $$2 }')
6 BIN = dist/build/$(PN)/$(PN)
7 TESTSUITE_BIN = dist/build/testsuite/testsuite
8 SRCS = $(shell find src/ -name '*.hs')
12 runghc Setup.hs configure --user --flags=${FLAGS}
15 $(TESTSUITE_BIN): src/*.hs test/TestSuite.hs
16 runghc Setup.hs configure --user --flags=${FLAGS} --enable-tests
26 runghc Setup.hs install
29 runghc Setup.hs configure
32 test: $(BIN) $(TESTSUITE_BIN)