Utilize make to render pages
This commit is contained in:
12
scripts/mk/algorithmica.mk
Normal file
12
scripts/mk/algorithmica.mk
Normal file
@@ -0,0 +1,12 @@
|
||||
TEMPLATE := $(TEMPLATE_DIR)/algorithmica.html
|
||||
METADATA := $(METADATA) metadata.md
|
||||
|
||||
PAGE := $(shell basename $(shell pwd))
|
||||
|
||||
all: $(BUILDDIR)/$(PAGE)/index.html
|
||||
|
||||
$(BUILDDIR)/$(PAGE)/index.html: main.md $(METADATA)
|
||||
@mkdir -p $(@D)
|
||||
pandoc $< $(METADATA) --to html --output $@ --standalone --template $(TEMPLATE) --mathjax
|
||||
|
||||
.PHONY: all
|
Reference in New Issue
Block a user