From 94acd9841cd75e4c6895a7a51bb171718af4cfae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 19 Apr 2021 13:37:50 +0200 Subject: [PATCH] New sync target. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 87d5377..dc51060 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,20 @@ -OUTPUT_DIR=output +OUTPUT_DIR=./output -.PHONY: pages blog all clean +.PHONY: all pages blog sync clean + +all: pages blog + cp nicolas@ortegas.org_pub.asc style.css favicon.png $(OUTPUT_DIR) pages: mkdir -p $(OUTPUT_DIR) find pages -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait -o $(OUTPUT_DIR)/ - cp nicolas@ortegas.org_pub.asc style.css favicon.png $(OUTPUT_DIR) blog: mkdir -p $(OUTPUT_DIR)/blog find blog/posts -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait -o $(OUTPUT_DIR)/blog/ -t blog/templates/ -all: pages blog +sync: all + rsync -avz --delete $(OUTPUT_DIR)/ nicolas@192.168.1.141::tmin-site clean: rm -rf $(OUTPUT_DIR)