|
@@ -0,0 +1,19 @@
|
|
|
+SRC_HTMLS := $(shell find src -name '*.src.html')
|
|
|
+SRC_MDS := $(shell find src -name '*.src.md')
|
|
|
+
|
|
|
+GEN_HTMLS := $(SRCH_HTMLS:%.src.html=%.gen.html)
|
|
|
+GEN_MDS := $(SRCH_MDS:%.src.md=%.gen.html)
|
|
|
+GEN_FILES := $(GEN_HTMLS) $(GEN_MDS)
|
|
|
+
|
|
|
+PANDOC_GEN := pandoc --standalone --wrap=none --template src/templates/main.html --metadata-file src/meta.yml
|
|
|
+
|
|
|
+.PHONY: build
|
|
|
+build: $(GEN_FILES)
|
|
|
+ $(info HTML generated)
|
|
|
+
|
|
|
+%.gen.html: %.src.html %.src.md
|
|
|
+ $(PANDOC_GEN) --output $@ $<
|
|
|
+
|
|
|
+.PHONY: clean
|
|
|
+clean:
|
|
|
+ rm -f $(GEN_FILES)
|