From c36c7abe00ce73ba82c77dba21f05e83f95f9184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Sat, 14 Nov 2020 14:27:59 +0100 Subject: [PATCH] Use an OUTPUT_DIR variable in the Makefile. --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5dbc765..87d5377 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,17 @@ +OUTPUT_DIR=output + .PHONY: pages blog all clean pages: - mkdir -p output - find pages -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait - cp nicolas@ortegas.org_pub.asc style.css favicon.png output/ + 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/blog - find blog/posts -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait -o output/blog/ -t blog/templates/ + 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 clean: - rm -rf output + rm -rf $(OUTPUT_DIR)