Makefile: generate html documentation

This commit is contained in:
Christian Hesse 2018-08-24 17:06:45 +02:00
parent c613602401
commit 598e0ad00f

View file

@ -2,6 +2,9 @@ GENERATE = collect-wireless-mac.capsman collect-wireless-mac.local dhcp-lease-co
all: $(GENERATE) all: $(GENERATE)
README.html: README.md
markdown README.md > README.html
%.local: *.template Makefile %.local: *.template Makefile
sed -e '/\/ caps-man/d' -e 's|%PATH%|interface wireless|' -e 's|%TEMPL%|$(suffix $@)|' \ sed -e '/\/ caps-man/d' -e 's|%PATH%|interface wireless|' -e 's|%TEMPL%|$(suffix $@)|' \
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \ -e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \