[Cbe-oss-dev] [PATCH 1/7]MARS/base: Doxygen conform to automake
Yuji Mano
yuji.mano at am.sony.com
Sat Jan 17 07:36:34 EST 2009
From: Kazunori Asayama <asayama at sm.sony.co.jp>
Modify doxygen Makefile to conform to automake
This patch modifies the Makefile in doxygen directory so it conforms
to automake's 3rd-party Makefile.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
---
doxygen/Makefile | 87 ++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 58 insertions(+), 29 deletions(-)
Index: b/doxygen/Makefile
===================================================================
--- a/doxygen/Makefile 2008-12-25 20:31:43.000000000 +0900
+++ b/doxygen/Makefile 2008-12-25 20:36:49.000000000 +0900
@@ -38,54 +38,83 @@ DOXY_SRC_IMAGES = `ls $(DOXY_SRC_DIR)/*.
RSVG_CONVERT = rsvg-convert
-.PHONY: all clean docs docs-dist docs-dist-clean dist dist-clean
+docdir = /usr/share/doc/mars-$(VERSION)
+htmldir = $(docdir)
-all: clean
- # Create build dir
- @mkdir $(DOXY_PACKAGE) $(DOXY_HTML_DIR)
+.PHONY: all build rebuild check html docs docs-dist distdir dist
+.PHONY: mostlyclean clean distclean maintainer-clean
+.PHONY: install install-data install-exec uninstall installdirs installcheck
+.PHONY: install-dvi install-html install-info install-ps install-pdf
+.PHONY: dvi info ps pdf
+.PHONY: tags ctags
- # Copy license file
- @cp $(DOXY_SRC_DIR)/$(DOXY_LICENSE) $(DOXY_PACKAGE)
+all: build
- # Convert SVG images to PNG images
+build: html
+
+html: $(DOXY_CONFIG)
+# Create build dir
+ mkdir -p $(DOXY_PACKAGE) $(DOXY_HTML_DIR)
+
+# Copy license file
+ cp -a $(DOXY_SRC_DIR)/$(DOXY_LICENSE) $(DOXY_PACKAGE)
+
+# Convert SVG images to PNG images
# @for img in $(DOXY_SRC_IMAGES); \
# do $(RSVG_CONVERT) -f png -o $$img.png $$img.svg || exit 1; \
# done
- # Create doxygen doc
- @sed \
+ doxygen $(DOXY_CONFIG)
+
+$(DOXY_CONFIG): $(DOXY_CONFIG).in
+ sed \
-e s, at MARS_BASE_DIR@,$(MARS_BASE_DIR),g \
-e s, at MARS_TASK_DIR@,$(MARS_TASK_DIR),g \
-e s, at DOXY_SRC_DIR@,$(DOXY_SRC_DIR),g \
-e s, at DOXY_HTML_DIR@,$(DOXY_HTML_DIR),g \
$(DOXY_CONFIG).in > $(DOXY_CONFIG)
- @doxygen $(DOXY_CONFIG)
- # Remove generated files
- @rm $(DOXY_CONFIG)
-# @rm $(DOXY_SRC_DIR)/*.png
+rebuild: clean build
+
+check:
+
+install: install-data
+
+install-data: install-html
+
+install-html: build
+ mkdir -p $(DESTDIR)$(htmldir)
+ cp -a $(DOXY_PACKAGE)/* $(DESTDIR)$(htmldir)
clean:
@rm -rf $(DOXY_PACKAGE) $(DOXY_CONFIG)
# $(DOXY_SRC_DIR)/*.png
-docs: all
-
-docs-clean: clean
+docs: html
-docs-dist: docs-dist-clean all
+docs-dist: rebuild
@tar cvzf $(DOXY_PACKAGE).tar.gz $(DOXY_PACKAGE)
@rm -rf $(DOXY_PACKAGE)
-docs-dist-clean: clean
- @rm -rf $(DOXY_PACKAGE).tar.gz $(DOXY_PACKAGE)
-
-dist: clean
- @mkdir $(PACKAGE)
- @cp -rf src Makefile COPYING README $(PACKAGE)
- @tar cvzf $(PACKAGE).tar.gz $(PACKAGE) --exclude=.gitignore
- @rm -rf $(PACKAGE)
-
-dist-clean: clean
- @rm -rf $(PACKAGE).tar.gz $(PACKAGE)
-
+dist:
+ $(MAKE) distdir=$(PACKAGE) distdir
+ tar cvzf $(PACKAGE).tar.gz $(PACKAGE)
+ rm -rf $(PACKAGE)
+
+distdir: distclean
+ mkdir -p $(distdir)
+ cp -rf src Makefile COPYING README $(distdir)
+ rm -f `find $(distdir) -name '.gitignore'`
+
+distclean: clean
+ rm -rf $(DOXY_PACKAGE).tar.gz $(DOXY_PACKAGE)
+ rm -rf $(PACKAGE).tar.gz $(PACKAGE)
+
+mostlyclean: clean
+
+maintainer-clean: distclean
+
+install-exec uninstall installdirs installcheck:
+install-dvi install-info install-ps install-pdf:
+dvi info ps pdf:
+tags ctags:
More information about the cbe-oss-dev
mailing list