+.ONESHELL:
+$(BUILD_DIR)/archive.html:
+ echo 'building archive file'
+ $(export_common)
+ cat $(TEMPLATE_DIR)/head.template.html $(TEMPLATE_DIR)/archivebody.template.html $(TEMPLATE_DIR)/foot.template.html > "$@"
+ envsubst < "$@" | sponge "$@"
+
+.ONESHELL:
+$(ARTICLE_PATH)/%.html: articles/%.md
+ echo 'parsing $^'
+ $(export_common)
+ export ARTICLE_TITLE="$(shell ./$(MODULE_DIR)/md-header "$<" name)"
+ export PUBLISHED_DATE="$(shell ./$(MODULE_DIR)/md-header "$<" published)"
+ cat $(TEMPLATE_DIR)/head.template.html > "$@"
+ # module pipeline starts here
+ ./$(MODULE_DIR)/md "$^" >> "$@"
+ # module pipeline ends here
+ cat $(TEMPLATE_DIR)/foot.template.html >> "$@"
+ envsubst < "$@" | sponge "$@"