better-think-editor/Makefile
Christian Lawson-Perfect ce6524bb26 remove make upload
2025-02-13 12:53:19 +00:00

16 lines
No EOL
414 B
Makefile

DIRNAME=$(notdir $(CURDIR))
PROD_DIR=/srv/think.somethingorotherwhatever.com/thinks/static/thinks
ELMS=$(wildcard src/*.elm)
deploy: $(PROD_DIR)/think-editor.js $(PROD_DIR)/load-think-editor.mjs $(PROD_DIR)/think-editor.css $(PROD_DIR)/code-editor.mjs
build: dist/think-editor.js
dist/think-editor.js: src/App.elm $(ELMS)
-elm make $< --output=$@ 2> error.txt
@cat error.txt
$(PROD_DIR)/%: dist/%
cp $< $@