justin-site/Makefile
Justin Hsu 283713be89 Make check after deploy, not before.
Before fails since links are absolute.
2016-10-25 08:36:37 -04:00

21 lines
368 B
Makefile

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)
check: $(TOP)
./$(TOP) check
preview: $(TOP)
./$(TOP) rebuild && ./$(TOP) watch
deploy: $(TOP)
./$(TOP) rebuild && ./$(TOP) deploy && ./$(TOP) check
clean:
rm *.hi *.o $(TOP)
$(TOP): $(TOP).hs
ghc $(GHC_FLAGS) $(TOP).hs