diff mbox

[v5,2/2] add makefile

Message ID 1398194761-31344-3-git-send-email-mike.holmes@linaro.org
State Not Applicable
Headers show

Commit Message

Mike Holmes April 22, 2014, 7:26 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 Doxyfile.in |  5 +++++
 Makefile    | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 Doxyfile.in
 create mode 100644 Makefile
diff mbox

Patch

diff --git a/Doxyfile.in b/Doxyfile.in
new file mode 100644
index 0000000..5b1c030
--- /dev/null
+++ b/Doxyfile.in
@@ -0,0 +1,5 @@ 
+PROJECT_NAME           = "ODP Architecture"
+OUTPUT_DIRECTORY       = ./doc
+OPTIMIZE_OUTPUT_FOR_C  = YES
+EXTRACT_ALL            = YES
+GENERATE_TREEVIEW      = YES
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..918d88c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@ 
+# Copyright (c) 2013, Linaro Limited
+# All rights reserved
+# SPDX-License-Identifier:     BSD-3-Clause
+
+MKDIR  := mkdir -p
+RMDIR  := rm -rf
+
+.DEFAULT_GOAL := docs
+
+DOC_DIR  = ./doc
+
+.PHONY: all
+all: docs
+
+$(DOC_DIR):
+	$(MKDIR) $(DOC_DIR)/html
+	$(MKDIR) $(DOC_DIR)/latex
+
+clean:
+	$(RMDIR) $(DOC_DIR)
+	$(RM) Doxyfile
+
+Doxyfile: Doxyfile.in
+	doxygen -u - < $< > $@
+
+.PHONY: docs
+docs: $(DOC_DIR) Doxyfile
+	doxygen
+
+.PHONY: docs_install
+docs_install: docs
+	$(COPY) doc $(DESTDIR)
+
+.PHONY: pdf
+pdf: docs
+	make --directory doc/latex refman.pdf 1> /dev/null