numam-spdk/doc/Makefile
Jim Harris f387d32133 doc/Makefile: include mk/spdk.common.mk
This allows us to use the $(Q) variable in this Makefile.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I1f9c54fb8c995bdee9749683b409152472366cbc

Reviewed-on: https://review.gerrithub.io/415872
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2018-06-19 17:29:06 +00:00

24 lines
506 B
Makefile

SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
all: doc
@:
.PHONY: all doc clean
doc: output
changelog.md: ../CHANGELOG.md
$(Q)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)
$(Q)rm -rf $@
$(Q)doxygen Doxyfile
clean:
$(Q)rm -rf output changelog.md