forked from Decentrala/website
produce html pages from markdown
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
enmd = $(wildcard src/en/*.md)
|
||||
enhtml = $(patsubst src/en/%.md,pages/en/%.html,$(enmd))
|
||||
srmd = $(wildcard src/sr/*.md)
|
||||
srhtml = $(patsubst src/sr/%.md,pages/sr/%.html,$(srmd))
|
||||
|
||||
out: $(enhtml) $(srhtml)
|
||||
|
||||
$(srhtml): $(srmd) | pages/sr/.gitignore
|
||||
pages/sr/%.html: src/sr/%.md
|
||||
lowdown $< > $@
|
||||
|
||||
$(enhtml): $(enmd) | pages/en/.gitignore
|
||||
pages/en/%.html: src/en/%.md
|
||||
lowdown $< > $@
|
||||
|
||||
pages/%/.gitignore:
|
||||
mkdir -p $(dir $@)
|
||||
echo '*' > $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) -r pages/
|
Reference in New Issue
Block a user