diff --git a/Makefile b/Makefile index 6af43f8..1b77c24 100644 --- a/Makefile +++ b/Makefile @@ -8,15 +8,15 @@ define Fish endef export Fish # hummm -Pandoc = \ - -s \ - -f markdown \ - --mathjax \ - --css style.css \ - --highlight-style kate \ - -H $(Etc)/favicon.html \ +Pandoc = \ + -s \ + -f markdown \ + --mathjax \ + --css style.css \ + --highlight-style kate \ + -H $(Etc)/favicon.html \ --include-before=$(Etc)/head.md \ - --include-after=$(Etc)/foot.md \ + --include-after=$(Etc)/foot.md \ --indented-code-classes=python,numberLines Cyan=\033[36m @@ -30,28 +30,24 @@ Etc=$(Top)/etc SHELL = bash .SILENT: -# #grep -E '^[^ \t][a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ - help: ## show help printf '\nmake [$(Yellow)what$(White)]\n' grep -hE '^[^ \t#].*## .*$$' $(MAKEFILE_LIST) \ - | grep -v grep \ - | sort \ - | awk 'BEGIN {FS=":.*?## "};{printf "$(Cyan)%10s$(White) : %s\n",$$1,$$2}' + | grep -vE '(grep|awk)' \ + | sort \ + | gawk 'BEGIN {FS=":.*?## "};{printf "$(Cyan)%10s$(White) : %s\n",$$1,$$2}' printf "$(Cyan) $$Fish $(White)\n" pull: ## get updates from cloud git pull --quiet push: ## save local changes to cloud - echo -en "\033[33mWhy this push? \033[0m"; read x; git commit -am "$$x" --quiet + read -ep "Why this push? " x; git commit -am "$$x" --quiet git push --quiet -u --no-progress git status --short -style.css: $(Etc)/style.css - cp $^ $@ +style.css: $(Etc)/style.css; cp $^ $@ %.html: %.md style.css ## md -> html echo "$@ ... " pandoc $< -o $@ $(Pandoc) -