Created
September 5, 2018 18:14
-
-
Save nilsmagnus/2b4c7ed6cb2b85fee921eba2f330d115 to your computer and use it in GitHub Desktop.
Makefile for elm project with watching of sourcefile on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL := /bin/bash | |
.PHONY: pushify.js test clean package | |
bin: pushify.js | |
pushify.js: Pushify.elm | |
@elm make Pushify.elm --optimize --output pushify.js || notify-send "elm compilation failed" | |
@cp pushify.js ../api/web/static/pushify.js | |
watch: | |
while true ; do \ | |
sleep 1 ; \ | |
make pushify.js ; \ | |
done | |
test: | |
@echo "no elm tests yet" | |
clean: | |
rm pushify.js || exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment