summaryrefslogtreecommitdiffstats
path: root/src/spdk/doc/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/spdk/doc/Makefile
parentInitial commit. (diff)
downloadceph-upstream/18.2.2.tar.xz
ceph-upstream/18.2.2.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/doc/Makefile')
-rw-r--r--src/spdk/doc/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/spdk/doc/Makefile b/src/spdk/doc/Makefile
new file mode 100644
index 000000000..ec3f396d9
--- /dev/null
+++ b/src/spdk/doc/Makefile
@@ -0,0 +1,23 @@
+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