release improvements (#1439)

Last release I forgot steps, put them in Makefile.release. Generating
the manual files will be skipped if 'ronn' can't be found.
This commit is contained in:
Miek Gieben
2018-01-26 16:57:08 +00:00
committed by Yong Tang
parent 4b5fc3002e
commit ed02f5f2a2
2 changed files with 18 additions and 4 deletions

View File

@@ -6,7 +6,13 @@ READMES:=$(subst /README.md,,$(READMES))
PLUGINS:=$(subst plugin/,corendns-,$(PLUGINS))
PLUGINS:=$(subst /README.md,(7),$(PLUGINS))
ifeq (, $(shell which ronn))
$(warning "No ronn in $$PATH, exiting")
all:
@echo "noop"
else
all: man/coredns.1 man/corefile.5 plugins
endif
man/coredns.1: coredns.1.md
sed -e 's/^\(#.*\)/\U\1/' $< > $@.md