f5fea785b0
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>
21 lines
405 B
Makefile
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
|