summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6801970..cfc583f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
1export DEPLOY_TARGET = vulpes@94.130.78.123:/srv/http/volpeon.ink/ 1export DEPLOY_TARGET = vulpes@94.130.78.123:/srv/http/volpeon.ink/
2export MODE = prod
2 3
3-include Env.mk 4-include Env.mk
4 5
@@ -61,10 +62,11 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \
61 -t html5 \ 62 -t html5 \
62 --wrap preserve \ 63 --wrap preserve \
63 --no-highlight \ 64 --no-highlight \
65 --metadata-file "$@.pages" \
64 --template scripts/metadata.json \ 66 --template scripts/metadata.json \
67 --metadata mode="$(MODE)" \
65 --metadata namespace="$(NAMESPACE)" \ 68 --metadata namespace="$(NAMESPACE)" \
66 --metadata file_out="$(patsubst .cache/meta/%.json,out/%.html,$@)" \ 69 --metadata file_out="$(patsubst .cache/meta/%.json,out/%.html,$@)" \
67 --metadata-file "$@.pages" \
68 $(PANDOC_FILTERS) \ 70 $(PANDOC_FILTERS) \
69 -o "$@.meta" "$<" 71 -o "$@.meta" "$<"
70 rm "$@.pages" 72 rm "$@.pages"
@@ -76,6 +78,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \
76 --lua-filter scripts/subpages.lua \ 78 --lua-filter scripts/subpages.lua \
77 $(GLOBAL_METADATA) \ 79 $(GLOBAL_METADATA) \
78 --metadata-file "$@.meta" \ 80 --metadata-file "$@.meta" \
81 --metadata mode="$(MODE)" \
79 --metadata file_out="$@" \ 82 --metadata file_out="$@" \
80 $(PANDOC_FILTERS) \ 83 $(PANDOC_FILTERS) \
81 -o "$@.content" "$<" 84 -o "$@.content" "$<"
@@ -99,6 +102,7 @@ out/%.html: content/%.md .cache/meta/%.json .cache/assets.json $(CONTENT_TEMPLAT
99 --lua-filter scripts/metadata.lua \ 102 --lua-filter scripts/metadata.lua \
100 $(GLOBAL_METADATA) \ 103 $(GLOBAL_METADATA) \
101 --metadata-file .cache/assets.json \ 104 --metadata-file .cache/assets.json \
105 --metadata mode="$(MODE)" \
102 --metadata-file "$(filter .cache/meta/%.json,$^)" \ 106 --metadata-file "$(filter .cache/meta/%.json,$^)" \
103 --metadata file_out="$@" \ 107 --metadata file_out="$@" \
104 $(PANDOC_FILTERS) \ 108 $(PANDOC_FILTERS) \
@@ -117,6 +121,7 @@ out/%.xml: content/%.md .cache/meta/%.json $(FEED_TEMPLATES_SRC) metadata/*.yaml
117 --lua-filter scripts/metadata.lua \ 121 --lua-filter scripts/metadata.lua \
118 $(GLOBAL_METADATA) \ 122 $(GLOBAL_METADATA) \
119 --metadata-file "$(filter .cache/meta/%.json,$^)" \ 123 --metadata-file "$(filter .cache/meta/%.json,$^)" \
124 --metadata mode="$(MODE)" \
120 --metadata file_out="$@" \ 125 --metadata file_out="$@" \
121 $(PANDOC_FILTERS) \ 126 $(PANDOC_FILTERS) \
122 -o "$@" "$<" 127 -o "$@" "$<"