Commit 33f0213d37fc0591148824bb3a792e0b8cba2376
Reword make status to check-publish
Grey Nicholson committed on 5/12/2022, 12:36:37 AMParent: a31b7da9cc9b7f1869d6290b6810dc5f194df889
Files changed
Makefile | changed |
Makefile | ||
---|---|---|
@@ -1,5 +1,5 @@ | ||
1 | -.PHONY: lint status publish serve | |
1 … | +.PHONY: lint check-publish publish serve | |
2 | 2 … | |
3 | 3 … | output: $(shell find content static) .cache/generator .cache/lint |
4 | 4 … | python generator/generate.py |
5 | 5 … | touch $@ |
@@ -21,9 +21,9 @@ | ||
21 | 21 … | .cache/lint: $(shell find static/style) |
22 | 22 … | toolbox run npx -y prettier -w static/style/tarazed.css |
23 | 23 … | touch $@ |
24 | 24 … | |
25 | -status: | |
25 … | +check-publish: | |
26 | 26 … | ifeq "${SSHUSER}" "" |
27 | 27 … | @echo "SSHUSER is undefined" |
28 | 28 … | @exit 1 |
29 | 29 … | else ifeq "${SSHPASS}" "" |
@@ -40,9 +40,9 @@ | ||
40 | 40 … | @git status --porcelain |
41 | 41 … | @exit 1 |
42 | 42 … | endif |
43 | 43 … | |
44 | -publish: status .cache/publish | |
44 … | +publish: check-publish .cache/publish | |
45 | 45 … | |
46 | 46 … | .cache/publish: output |
47 | 47 … | echo -e "cd ${SSHDIR} \n put -r output/* \n exit" | \ |
48 | 48 … | sshpass -e sftp -oBatchMode=no -b - sftp://${SSHUSER}@gkn.me.uk:${SSHPORT} |
Built with git-ssb-web