aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazunori Asayama <asayama@sm.sony.co.jp>2009-01-16 12:36:34 -0800
committerYuji Mano <yuji.mano@am.sony.com>2009-01-20 11:46:40 -0800
commit7ea723f6b5410a94d4bf782d2e8f808316dc4c6a (patch)
treec5b3d9eb7fc5863e5ff4f031cf718ce5cb6652b5
parentee1b86d3890748acbab68aabe187c9b06a279d79 (diff)
downloadmars-src-7ea723f6b5410a94d4bf782d2e8f808316dc4c6a.tar.gz
base: Doxygen conform to automake
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@sm.sony.co.jp> Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>
-rw-r--r--doxygen/Makefile81
1 files changed, 55 insertions, 26 deletions
diff --git a/doxygen/Makefile b/doxygen/Makefile
index d830807..5c277bc 100644
--- a/doxygen/Makefile
+++ b/doxygen/Makefile
@@ -38,54 +38,83 @@ DOXY_SRC_IMAGES = `ls $(DOXY_SRC_DIR)/*.svg | sed 's,.svg,,g'`
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,@MARS_BASE_DIR@,$(MARS_BASE_DIR),g \
-e s,@MARS_TASK_DIR@,$(MARS_TASK_DIR),g \
-e s,@DOXY_SRC_DIR@,$(DOXY_SRC_DIR),g \
-e s,@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:
+ $(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)
-dist: clean
- @mkdir $(PACKAGE)
- @cp -rf src Makefile COPYING README $(PACKAGE)
- @tar cvzf $(PACKAGE).tar.gz $(PACKAGE) --exclude=.gitignore
- @rm -rf $(PACKAGE)
+mostlyclean: clean
-dist-clean: clean
- @rm -rf $(PACKAGE).tar.gz $(PACKAGE)
+maintainer-clean: distclean
+install-exec uninstall installdirs installcheck:
+install-dvi install-info install-ps install-pdf:
+dvi info ps pdf:
+tags ctags: