2021-04-19 11:37:50 +00:00
|
|
|
OUTPUT_DIR=./output
|
2020-11-14 13:27:59 +00:00
|
|
|
|
2021-04-19 11:37:50 +00:00
|
|
|
.PHONY: all pages blog sync clean
|
|
|
|
|
|
|
|
all: pages blog
|
2021-10-18 17:57:38 +00:00
|
|
|
cp nicolas@ortegas.org_pub.asc style.css favicon.png profile.png $(OUTPUT_DIR)
|
2020-11-12 09:08:48 +00:00
|
|
|
|
|
|
|
pages:
|
2020-11-14 13:27:59 +00:00
|
|
|
mkdir -p $(OUTPUT_DIR)
|
|
|
|
find pages -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait -o $(OUTPUT_DIR)/
|
2020-11-12 09:08:48 +00:00
|
|
|
|
|
|
|
blog:
|
2020-11-14 13:27:59 +00:00
|
|
|
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/
|
2020-11-12 09:08:48 +00:00
|
|
|
|
2021-04-19 11:37:50 +00:00
|
|
|
sync: all
|
|
|
|
rsync -avz --delete $(OUTPUT_DIR)/ nicolas@192.168.1.141::tmin-site
|
2020-11-12 09:08:48 +00:00
|
|
|
|
|
|
|
clean:
|
2020-11-14 13:27:59 +00:00
|
|
|
rm -rf $(OUTPUT_DIR)
|