Skip to content

Instantly share code, notes, and snippets.

@nilsmagnus
Created September 5, 2018 18:14
Show Gist options
  • Save nilsmagnus/2b4c7ed6cb2b85fee921eba2f330d115 to your computer and use it in GitHub Desktop.
Save nilsmagnus/2b4c7ed6cb2b85fee921eba2f330d115 to your computer and use it in GitHub Desktop.
Makefile for elm project with watching of sourcefile on ubuntu
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