xref: /spdk/doc/Makefile (revision 74efab1eb95ebc4988e264ac4d770ae49e2779cd)
1#  SPDX-License-Identifier: BSD-3-Clause
2#  Copyright (C) 2015 Intel Corporation
3#  All rights reserved.
4#
5
6all: doc
7	@:
8
9.PHONY: all doc clean
10
11doc: output
12
13deprecation.md: ../deprecation.md
14	$(Q)sed -e 's/^# Deprecation/# Deprecation {#deprecation}/' \
15	    < $< > $@
16
17changelog.md: ../CHANGELOG.md
18	$(Q)sed -e 's/^# Changelog/# Changelog {#changelog}/' \
19	    -e 's/^##/#/' \
20	    -e 's/^# \(\(v..\...\):.*\)/# \1 {#changelog-\2}/' \
21	    -e '/# v..\...:/s/\./-/2' \
22	    < $< > $@
23
24output: Doxyfile changelog.md deprecation.md $(wildcard *.md) $(wildcard ../include/spdk/*.h)
25	$(Q)rm -rf $@
26	$(Q)doxygen Doxyfile
27
28clean:
29	$(Q)rm -rf output changelog.md deprecation.md
30