X-Git-Url: https://git.danieliu.xyz/?p=pinopress.git;a=blobdiff_plain;f=pinopress;fp=pinopress;h=b47d785e49e20b4464cdf4e23d49f9ee343c5cb5;hp=c12c485b65087889c68226df2cbd5e85555ddcc4;hb=6ec6ed4c15ad3c37fbe1076aa33d26e9c21050a9;hpb=1f9da3846f8e78cac52ea5a4c3840dfc391dca53 diff --git a/pinopress b/pinopress index c12c485..b47d785 100755 --- a/pinopress +++ b/pinopress @@ -8,6 +8,8 @@ SITEURL := https://blog.danieliu.xyz USERGLOBAL1 := USERGLOBAL2 := +include config.mk + .PHONY: help build clean # internal variables @@ -69,11 +71,11 @@ $(BUILD_DIR)/$(ARTICLE_PATH)/%.html: $(SRC_DIR)/%.md echo "parsing $<" $(export_common) $(call export_article,"$<") - . ./$(MODULE_DIR)/md-header "$<" cat $(TEMPLATE_DIR)/head.template.html > "$@" # module pipeline starts here - ./$(MODULE_DIR)/md "$^" >> "$@" - . ./$(MODULE_DIR)/readingtime "$^" + ./$(MODULE_DIR)/md "$<" >> "$@" + . ./$(MODULE_DIR)/md-header "$<" + . ./$(MODULE_DIR)/readingtime "$<" # module pipeline ends here cat $(TEMPLATE_DIR)/foot.template.html >> "$@" envsubst < "$@" | sponge "$@"