Skip to content

Commit d86a761

Browse files
committed
Makefile: Remove profiling, cleanup
1 parent a4989c6 commit d86a761

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11

22
LIBSRC = $(shell find src/Language -name \*.hs) $(LEXER) $(GRAMMAR)
3+
TESTSRC = $(shell find Tests -name \*.hs)
34

45
LEXER = dist/build/Language/JavaScript/Parser/Lexer.hs
56
GRAMMAR = dist/build/Language/JavaScript/Parser/Grammar5.hs
67

78
GHC = cabal exec -- ghc
8-
GHCFLAGS = -Wall -fwarn-tabs -rtsopts -prof -auto-all -caf-all
9+
GHCFLAGS = -Wall -fwarn-tabs
910

1011

11-
check : runtests.exe
12-
./runtests.exe
12+
check : testsuite.exe
13+
./testsuite.exe
1314

1415

1516
clean :
1617
find dist/build/ src/ -name \*.{o -o -name \*.hi | xargs rm -f
1718
rm -f $(LEXER) $(GRAMMAR) $(TARGETS) *.exe
1819

19-
%.exe : %.hs $(LIBSRC)
20+
testsuite.exe : testsuite.hs $(LIBSRC) $(TESTSRC)
2021
$(GHC) $(GHCFLAGS) -O2 -i:src -i:dist/build --make $< -o $@
2122

2223

0 commit comments

Comments
 (0)