first commit
This is the first commit. With stuff on several lines.
This commit is contained in:
commit
899087ed49
11 changed files with 1101 additions and 0 deletions
20
Makefile
Normal file
20
Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
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
|
||||
|
||||
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)"
|
Loading…
Add table
Add a link
Reference in a new issue