live reloading; allow other pages
This commit is contained in:
20
Makefile
20
Makefile
@@ -1,5 +1,19 @@
|
||||
index.html: index.md index.tmpl
|
||||
pandoc index.md --template index.tmpl -o index.html
|
||||
all: $(patsubst %.md,%.html,$(wildcard *.md)) Makefile
|
||||
|
||||
watch:
|
||||
fswatch -0 *.{md,tmpl} | xargs -0 -n1 -I{} make
|
||||
fswatch -0 *.{md,tmpl} | xargs -0 -n1 -I{} make all
|
||||
|
||||
livereload:
|
||||
livereloadx --static .
|
||||
|
||||
clean:
|
||||
rm -f $(patsubst %.md,%.html,$(wildcard *.md))
|
||||
|
||||
PANDOC = pandoc # --from markdown --to html
|
||||
|
||||
# index.html: index.md index.tmpl
|
||||
# $(PANDOC) --template index.tmpl index.md -o $@
|
||||
|
||||
%.html: %.md index.tmpl
|
||||
$(PANDOC) --template index.tmpl $< -o $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user