Use an OUTPUT_DIR variable in the Makefile.
This commit is contained in:
parent
5e0cbb070b
commit
c36c7abe00
14
Makefile
14
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)
|
||||
|
Loading…
Reference in New Issue
Block a user