0269601f77
This copies the top-level CHANGELOG.md into a temporary doc/changelog.md file so it can add the Doxygen-specific {#changelog} name tag. Change-Id: I2fb3087dc15036e58cb7719f67c434897c39821c Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/375251 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
20 lines
352 B
Makefile
20 lines
352 B
Makefile
all: doc
|
|
|
|
.PHONY: all doc clean
|
|
|
|
doc: output
|
|
|
|
changelog.md: ../CHANGELOG.md
|
|
sed -e 's/^# Changelog/# Changelog {#changelog}/' \
|
|
-e 's/^##/#/' \
|
|
-e 's/^# \(\(v..\...\):.*\)/# \1 {#changelog-\2}/' \
|
|
-e '/# v..\...:/s/\./-/2' \
|
|
< $< > $@
|
|
|
|
output: Doxyfile changelog.md
|
|
rm -rf $@
|
|
doxygen Doxyfile
|
|
|
|
clean:
|
|
rm -rf output changelog.md
|