Makefile: update links for generated html

This commit is contained in:
Christian Hesse 2019-01-02 16:20:34 +01:00
parent e27a4e8f0e
commit dfa750a7f5

View file

@ -12,7 +12,7 @@ HTML = $(MARKDOWN:.md=.html)
all: $(CAPSMAN) $(LOCAL) $(HTML)
%.html: %.md Makefile
markdown $< > $@
markdown $< | sed 's/href="\([-[:alnum:]]*\)\.md"/href="\1.html"/g' > $@
%.local: %.template Makefile
sed -e '/\/ caps-man/d' -e 's|%PATH%|interface wireless|' -e 's|%TEMPL%|$(suffix $@)|' \