From 35e3ba839ccccbcd20b1391a94b76ad2131e7fe4 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 3 Nov 2019 10:39:52 -0800 Subject: [PATCH] standard make rules: watch, auto --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 62a26ee..2fcde54 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ PANDOC=pandoc -f markdown-smart+autolink_bare_uris $(PANDOC) --template index.tmpl $< -o $@ # regenerate html whenever an md file changes -html-auto: +html-auto auto: ls *.md | entr make html BROWSE=open @@ -22,7 +22,7 @@ LIVERELOAD=livereloadx -p $(LIVERELOADPORT) -s # A reload happens at the end when the css/js files get copied. # Auto-regenerate html, and watch changes in a new browser window. -html-watch: +html-watch watch: make html-auto & (sleep 1; $(BROWSE) http://localhost:$(LIVERELOADPORT)/) & $(LIVERELOAD) .