Makefile: fix '#' for some GNU Make/Bash versions

This commit is contained in:
Bruno
2022-05-15 23:14:55 +02:00
parent 9a73e4b0c0
commit 788a93f63d

View File

@@ -17,7 +17,7 @@ endef
# provide a title to pandoc. We take the first line starting with '#',
# and remove initial '#' and spaces
TITLE = $(shell sed -n '0,/^#/ s/^[# ]*//p' $1)
TITLE = $(shell sed -n '0,/^\#/ s/^[\# ]*//p' $1)
OPTS = --standalone --include-in-header=$(CSSINC) --template=$(TEMPLATE) \
--from=gfm --to=html5