justin-site/Makefile

18 lines
355 B
Makefile
Raw Normal View History

2015-01-05 06:20:06 +00:00
TOP = site
CABAL_SB = ./.cabal-sandbox/x86_64-osx-ghc-7.8.3-packages.conf.d
GHC_FLAGS = -v -package-db=$(CABAL_SB) -threaded
all: $(TOP)
2015-02-20 17:25:30 +00:00
preview: $(TOP)
2016-10-13 16:25:11 +00:00
./$(TOP) rebuild && ./$(TOP) check && ./$(TOP) watch
2015-02-20 17:25:30 +00:00
2015-01-05 06:20:06 +00:00
deploy: $(TOP)
2016-10-13 16:25:11 +00:00
./$(TOP) rebuild && ./$(TOP) check && ./$(TOP) deploy
2015-01-05 06:20:06 +00:00
clean:
rm *.hi *.o $(TOP)
$(TOP): $(TOP).hs
ghc $(GHC_FLAGS) $(TOP).hs