+.ONESHELL:
+$(BUILD_DIR)/rolling.html:
+ echo 'building rolling file'
+ $(export_common)
+ cat $(TEMPLATE_DIR)/head.template.html $(TEMPLATE_DIR)/rollingbody.template.html $(TEMPLATE_DIR)/foot.template.html > "$@"
+ $(call loop_article,"$@",rollingitem.template.html)
+ envsubst < "$@" | sponge "$@"
+
+.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 > "$@"
+ $(call loop_article,"$@",archiveitem.template.html)
+ envsubst < "$@" | sponge "$@"
+
+.ONESHELL:
+$(BUILD_DIR)/feed.xml:
+ echo 'building feed file'
+ $(export_common)
+ cat $(TEMPLATE_DIR)/feed.template.xml > "$@"
+ $(call loop_article,"$@",feeditem.template.xml)
+ envsubst < "$@" | sponge "$@"
+
+.ONESHELL:
+$(BUILD_DIR)/$(ARTICLE_PATH)/%.html: $(SRC_DIR)/%.md
+ echo "parsing $<"
+ $(export_common)
+ $(call export_article,"$<")
+ 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 "$@"