Update
This commit is contained in:
5
Makefile
5
Makefile
@@ -26,8 +26,9 @@ template: $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html | mkdis
|
||||
cat $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html > dist/template.html
|
||||
|
||||
$(PAGES_DIR)/blog.html: $(BLOG_PAGES) $(BLOG_DIR)/start_blog.html $(BLOG_DIR)/end_blog.html
|
||||
pandoc -f markdown -t html $^ -o $@
|
||||
cat $(BLOG_DIR)/start_blog.html $@ $(BLOG_DIR)/end_blog.html | tee $@
|
||||
pandoc -f markdown -t html $^ -o $@.tmp
|
||||
cat $(BLOG_DIR)/start_blog.html $@.tmp $(BLOG_DIR)/end_blog.html > $@
|
||||
rm $@.tmp
|
||||
|
||||
$(DIST_DIR)/%.html: $(PAGES_DIR)/%.html | template mkdist
|
||||
cat $(DIST_DIR)/template.html $(PAGES_DIR)/$*.html $(SRC_DIR)/end.html > $@
|
||||
|
||||
Reference in New Issue
Block a user