commit ce81f991bc316947f3263fe9e5fd8966b6a5e1fc parent 38f4852c73ec3710ec3001d1b45a7b385325bc76 Author: Paco Esteban <paco@e1e0.net> Date: Sun, 17 Mar 2024 13:03:30 +0100 add makefile to simplify commands Diffstat:
A | Makefile | | | 25 | +++++++++++++++++++++++++ |
1 file changed, 25 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,25 @@ +HEADER = "templates/_header.html" +FOOTER = "templates/_footer.html" +TITLE = "e1e0.net" +SRC_FOLDER = "src" +DEST_FOLDER ?= "htmlOut" +REMOTE ?= "elrond.h.e1e0.net:/app_data/www/htdocs/www.e1e0.net/" + +.PHONY: sync + +build: + ssnail \ + -h ${HEADER} \ + -f ${FOOTER} \ + -i -r \ + -t ${TITLE} \ + -u https://${TITLE}/ \ + ${SRC_FOLDER} \ + ${DEST_FOLDER} + +sync: + rsync \ + -av \ + --delete \ + ${DEST_FOLDER}/ \ + ${REMOTE}