~singpolyma/cheogram

ref: 3bd9c3870d41e3af2f469f2a3904025aef29a767 cheogram/Makefile -rw-r--r-- 753 bytes
3bd9c387Stephen Paul Weber -O2 takes too much RAM for CI 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
GHCFLAGS=-Wall -Wno-tabs -Wno-orphans -Wno-name-shadowing -XHaskell2010 -O -threaded
HLINTFLAGS=-XHaskell2010 -XCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension'

.PHONY: all shell clean

all: report.html cheogram

cheogram: Main.hs Adhoc.hs Config.hs ConfigureDirectMessageRoute.hs DB.hs IQManager.hs RedisURL.hs StanzaRec.hs UniquePrefix.hs Util.hs
	ghc -dynamic -package monads-tf -o cheogram $GHCFLAGS Main.hs

report.html: Main.hs Adhoc.hs Config.hs ConfigureDirectMessageRoute.hs DB.hs IQManager.hs RedisURL.hs StanzaRec.hs UniquePrefix.hs Util.hs
	-hlint $(HLINTFLAGS) --report $^

shell:
	ghci $(GHCFLAGS)

clean:
	find -name '*.o' -o -name '*.hi' | xargs $(RM)
	$(RM) cheogram report.html