You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
343 B

SOURCES := $(shell find src -type f)
WWW := $(shell find www -type f)
.PHONY: all clean
all: www/elm.js
www/elm.js: $(SOURCES)
@ELM@ make src/Main.elm --output=www/elm.js
install: www/elm.js @public_dir@
@public_dir@: $(WWW)
@mkdir -p @public_dir@
@cp -r ./www/ @public_dir@
uninstall:
rm -rf @public_dir@
clean:
rm -f www/elm.js