New sync target.

This commit is contained in:
Nicolás A. Ortega Froysa 2021-04-19 13:37:50 +02:00
parent 51c2f84ae6
commit 94acd9841c

View File

@ -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: pages:
mkdir -p $(OUTPUT_DIR) mkdir -p $(OUTPUT_DIR)
find pages -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait -o $(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: blog:
mkdir -p $(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/ 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: clean:
rm -rf $(OUTPUT_DIR) rm -rf $(OUTPUT_DIR)