summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ae1e75d..ac2fec0 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \
47 $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -maxdepth 1 -type f -name "*.md" ! -name "index.md") \ 47 $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -maxdepth 1 -type f -name "*.md" ! -name "index.md") \
48 $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -mindepth 2 -maxdepth 2 -type f -name "index.md")) 48 $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -mindepth 2 -maxdepth 2 -type f -name "index.md"))
49 49
50.cache/meta/%.json: content/%.md $$(call subpages,$$(call namespace,$$@,)) scripts/subpages.lua scripts/subpages.jq scripts/metadata_tpl.json | .cache/meta 50.cache/meta/%.json: content/%.md $$(call subpages,$$(call namespace,$$@,)) filters/*.lua scripts/subpages.lua scripts/subpages.jq scripts/metadata_tpl.json | .cache/meta
51 $(info [META] $< -> $@) 51 $(info [META] $< -> $@)
52 52
53 mkdir -p $(@D) 53 mkdir -p $(@D)
@@ -69,6 +69,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \
69 --lua-filter scripts/subpages.lua \ 69 --lua-filter scripts/subpages.lua \
70 $(GLOBAL_METADATA) \ 70 $(GLOBAL_METADATA) \
71 --metadata namespace="$(NAMESPACE)" \ 71 --metadata namespace="$(NAMESPACE)" \
72 $(PANDOC_FILTERS) \
72 -o "$@.content" "$<" 73 -o "$@.content" "$<"
73 jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" 74 jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@"
74 rm "$@.pages" 75 rm "$@.pages"