Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ed54c6
commit 5a7a640
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
GHCFLAGS=-Wall -XNoCPP -fno-warn-name-shadowing -XHaskell98 -O2 | ||
HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8 | ||
|
||
.PHONY: all shell clean | ||
|
||
all: match Main.class | ||
|
||
match: match.hs | ||
ghc $(GHCFLAGS) -o $@ $^ | ||
|
||
Main.class: match.scala jackson.jar com/codahale/jerkson/Json.class | ||
scalac -classpath .:jackson.jar match.scala | ||
|
||
com/codahale/jerkson/Json.class: jackson.jar com/codahale/jerkson/JsonSnakeCase.class | ||
find com/codahale/jerkson/ -name '*.scala' | xargs scalac -classpath .:jackson.jar | ||
|
||
com/codahale/jerkson/JsonSnakeCase.class: jackson.jar | ||
find com/codahale/jerkson/ -name '*.java' | xargs javac -classpath jackson.jar | ||
|
||
report.html: match.hs | ||
-hlint $(HLINTFLAGS) --report $^ | ||
|
||
.PHONY: shell clean | ||
|
||
shell: | ||
ghci $(GHCFLAGS) | ||
|
||
clean: | ||
find -name '*.o' -o -name '*.hi' | xargs $(RM) | ||
find . -name '*.o' -o -name '*.hi' | xargs $(RM) | ||
find . -name '*.class' | xargs $(RM) | ||
$(RM) match |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters