blog-rekahsoft-ca/Makefile
Collin J. Doering 671fe3db4b Test site using hspec and webdriver/selenium
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2015-02-18 03:01:44 -05:00

34 lines
633 B
Makefile

# Makefile for blog-rekahsoft-ca
.PHONY: all configure clean build site deploy preDeploy test server
all: clean build test
configure:
cabal configure --enable-tests
clean:
rm -Rf _site _cache
cabal clean
build: configure
cabal build
site: build
./site rebuild
deploy: site preDeploy test
@echo "Deploying website..."
@rsync -rpogtzcv --delete -e ssh _site/ collin@rekahsoft.ca:~/public_html/blog/
preDeploy: _site
@echo "Removing empty files..."
@find _site -type f -empty -exec rm -v {} \;
@echo "\n"
test: site preDeploy
cabal test --show-details=always --test-option=--color
server: build site
./site server