add favicon
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
.PHONY: all mkdist watch clean
|
||||
|
||||
SRC_DIR = src
|
||||
RES_DIR = res
|
||||
PAGES_DIR = $(SRC_DIR)/pages
|
||||
BLOG_DIR = $(SRC_DIR)/blog
|
||||
DIST_DIR = dist
|
||||
@@ -13,10 +14,7 @@ TARGETS = $(addprefix $(DIST_DIR)/,$(PAGES))
|
||||
all: $(PAGES_DIR)/blog.html $(TARGETS)
|
||||
|
||||
watch:
|
||||
while sleep 1 ; do \
|
||||
find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" \
|
||||
| entr -d make -f ./Makefile ; \
|
||||
done
|
||||
find ./$(SRC_DIR) -iname '*.html' -o -name "*.css" | entr -d make -f ./Makefile ;
|
||||
|
||||
mkdirs:
|
||||
mkdir -p $(DIST_DIR)
|
||||
@@ -26,6 +24,9 @@ template: $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html | mkdir
|
||||
cp -r $(SRC_DIR)/styles $(DIST_DIR)
|
||||
cat $(SRC_DIR)/start.html $(SRC_DIR)/nav.html $(SRC_DIR)/side.html > $(BUILD_DIR)/template.html
|
||||
|
||||
favicon: $(RES_DIR) | mkdirs
|
||||
cp res/* dist/
|
||||
|
||||
$(PAGES_DIR)/blog.html: $(BLOG_PAGES) $(BLOG_DIR)/start_blog.html $(BLOG_DIR)/end_blog.html
|
||||
pandoc -f markdown -t html $^ -o $@.tmp
|
||||
cat $(BLOG_DIR)/start_blog.html $@.tmp $(BLOG_DIR)/end_blog.html > $@
|
||||
|
||||
Reference in New Issue
Block a user