numam-spdk/doc/Makefile
Daniel Verkamp f5fea785b0 build/doc: add dependencies to 'output' rule
Make the docs depend on all of the public header files and Markdown
files.

Without this, the docs never get rebuilt without a manual 'make clean'.

While we're here, add '@:' to the 'all' rule to silence it.

Change-Id: I304a1bb30464d2a0a60a1c117b7be1f7e543e15c
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/399954
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2018-02-15 11:10:55 -05:00

21 lines
405 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 $(wildcard *.md) $(wildcard ../include/spdk/*.h)
rm -rf $@
doxygen Doxyfile
clean:
rm -rf output changelog.md