+build: $(BUILD_DIR)/rolling.html $(BUILD_DIR)/archive.html $(BUILD_DIR)/feed.xml $(addprefix $(BUILD_DIR)/$(ARTICLE_PATH)/,$(addsuffix .html,$(ARTICLE_LIST)))
+
+.ONESHELL:
+$(BUILD_DIR)/rolling.html:
+ $(call build_page,rollingpage.template.html,rollingitem.template.html,building rolling file)
+
+.ONESHELL:
+$(BUILD_DIR)/archive.html:
+ $(call build_page,archivepage.template.html,archiveitem.template.html,building archive file)
+
+.ONESHELL:
+$(BUILD_DIR)/feed.xml:
+ $(call build_page,feed.template.xml,feeditem.template.xml,building feed file)
+
+.ONESHELL:
+$(BUILD_DIR)/$(ARTICLE_PATH)/%.html: $(SRC_DIR)/%.md
+ echo "parsing $<"
+ $(export_common)
+ cat $(TEMPLATE_DIR)/articlepage.template.html > "$@"
+ # module pipeline starts here
+ ./$(MODULE_DIR)/md "$<" | sed -i "/<!-- _MOUNT_ARTICLECONTENT -->/r /dev/stdin" "$@"
+ . ./$(MODULE_DIR)/md-header "$<"
+ . ./$(MODULE_DIR)/readingtime "$<"
+ # module pipeline ends here
+ $(call expand_mount,$@)
+ envsubst < "$@" | sponge "$@"