forked from Decentrala/website
convert markdown to html
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
output : all
|
||||
|
||||
public:
|
||||
mkdir public
|
||||
|
||||
public/static: static
|
||||
cp -r static public/
|
||||
|
||||
public/%.html : %.md
|
||||
@cp start.html $@
|
||||
@cat $< | sed 's#.md)#.html)#g' | pandoc -f markdown -t html5 -o- >> $@
|
||||
@cat end.html >> $@
|
||||
|
||||
HTML := $(patsubst %.md,public/%.html,$(wildcard *.md))
|
||||
|
||||
all : public $(HTML) public/static
|
||||
|
||||
test:
|
||||
echo $(HTML)
|
||||
|
||||
clean :
|
||||
rm -rf public
|
Reference in New Issue
Block a user