2025-02-08 14:48:40 +00:00
|
|
|
DIRNAME=$(notdir $(CURDIR))
|
|
|
|
|
|
|
|
PROD_DIR=/srv/think.somethingorotherwhatever.com/thinks/static/thinks
|
|
|
|
|
|
|
|
ELMS=$(wildcard src/*.elm)
|
|
|
|
|
2025-02-12 10:45:39 +00:00
|
|
|
deploy: $(PROD_DIR)/think-editor.js $(PROD_DIR)/load-think-editor.mjs $(PROD_DIR)/think-editor.css $(PROD_DIR)/code-editor.mjs
|
2025-02-08 14:48:40 +00:00
|
|
|
|
|
|
|
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 $< $@
|
|
|
|
|
|
|
|
upload: app.js index.html style.css
|
|
|
|
rsync -avz . clpland:~/domains/somethingorotherwhatever.com/html/$(DIRNAME)
|
|
|
|
@echo "Uploaded to https://somethingorotherwhatever.com/$(DIRNAME)"
|