out is a var

This commit is contained in:
gauthiier 2021-12-11 18:13:51 +01:00
parent 53ebcb689d
commit 7dba9e805f

View File

@ -1,15 +1,19 @@
#edit as you wish!
OUTPUT = "out"
all: pull index
init:
pppadump init
mkdir out
mkdir $(OUTPUT)
pull:
pppadump pull --all --force --css ../styles.css --pub out/p --group out/g
pppadump pull --all --force --css ../styles.css --pub $(OUTPUT)/p --group $(OUTPUT)/g
index:
cp styles/styles.css out/
pppadump index input out/p/*.meta.json --title "Notes, __MAGICWORDS__, readers & more ..." --templatepath templates/ --output out/index.html
cp styles/styles.css $(OUTPUT)/
pppadump index input $(OUTPUT)/p/*.meta.json --title "Notes, __MAGICWORDS__, readers & more ..." --templatepath templates/ --output $(OUTPUT)/index.html
clean:
rm -Rf out/
rm -Rf $(OUTPUT)