summaryrefslogtreecommitdiff
path: root/build/Makefile.common
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-08 19:38:36 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-08 19:38:36 +0000
commit5a8784817cc0ff505a502d20e6eb6975ef281d15 (patch)
tree899dff475bfc40c3dcc72bf4808a0859752a8dbe /build/Makefile.common
parent024709d09ec4dbf301588258360fa9891c17000e (diff)
downloadlibhubbub-5a8784817cc0ff505a502d20e6eb6975ef281d15.tar.gz
libhubbub-5a8784817cc0ff505a502d20e6eb6975ef281d15.tar.bz2
Use doxygen to create API documentation.
Add a bunch of extra commentary to stop doxygen warning. svn path=/trunk/hubbub/; revision=5994
Diffstat (limited to 'build/Makefile.common')
-rw-r--r--build/Makefile.common8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/Makefile.common b/build/Makefile.common
index 4787fb0..65158ad 100644
--- a/build/Makefile.common
+++ b/build/Makefile.common
@@ -12,6 +12,7 @@ EXPORT := $(TOP)/dist
RELEASEDIR := build/Release
DEBUGDIR := build/Debug
COVERAGEDIR := build/coverage
+DOCDIR := build/docs
# List of items to delete on clean
ITEMS_CLEAN :=
@@ -41,7 +42,7 @@ $(eval $(foreach INC, $(MAKE_INCLUDES), $(call do_include,$(INC))))
# Calculate objects to build
OBJECTS := $(subst /,_,$(subst .c,.o,$(SOURCES)))
-.PHONY: release debug test coverage profile \
+.PHONY: release debug test coverage profile docs \
clean distclean setup export install uninstall
# Rules
@@ -69,9 +70,13 @@ coverage: clean
profile: clean
@$(MAKE) test CFLAGS="$(CFLAGS) -pg" LDFLAGS="-pg $(LDFLAGS)"
+docs: setup
+ @$(DOXYGEN) build/Doxyfile
+
clean:
-@$(RM) $(RMFLAGS) $(ITEMS_CLEAN)
-@$(RM) $(RMFLAGS) gmon.out
+ -@$(RM) $(RMFLAGS) -r $(DOCDIR)
-@$(RM) $(RMFLAGS) -r $(COVERAGEDIR)
-@$(RM) $(RMFLAGS) -r $(RELEASEDIR)
-@$(RM) $(RMFLAGS) -r $(DEBUGDIR)
@@ -87,6 +92,7 @@ setup:
@$(MKDIR) $(MKDIRFLAGS) $(RELEASEDIR)/deps
@$(MKDIR) $(MKDIRFLAGS) $(DEBUGDIR)/deps
@$(MKDIR) $(MKDIRFLAGS) $(COVERAGEDIR)
+ @$(MKDIR) $(MKDIRFLAGS) $(DOCDIR)
export:
@$(MKDIR) $(MKDIRFLAGS) $(TOP)/dist