replace build with Makefile

master
Matthew Butterick 7 years ago
parent 4c9f8c38e9
commit 2f73636bfb

@ -0,0 +1,21 @@
export POLLEN := BUILD
.PHONY: build go clean clean-helper build-helper quick
go:
raco pollen render
raco pollen publish
build: build-helper go
clean-helper:
rm -rf ~/git/pollen-tfl/*
cd ~/git/pollen-tfl
git reset --hard HEAD
clean: clean-helper build
build-helper:
raco pollen reset
raco pollen setup
quick: go

@ -1,13 +0,0 @@
export POLLEN=BUILD
if [ "$1" == "clean" ]; then
rm -rf ~/git/pollen-tfl/*
cd ~/git/pollen-tfl
git reset --hard HEAD
fi
if [ "$1" != "quick" ]; then
raco pollen reset
fi
raco pollen setup
raco pollen render
raco pollen publish
unset POLLEN