summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2005-05-18 13:13:34 +0200
committerMichael Brown2005-05-18 13:13:34 +0200
commit8bf79021411d846150fece2eb5054873fa18a4cf (patch)
tree65f2a0493e3efab6a592c15de449fc893bfd63e9 /src/Makefile.housekeeping
parentAdd DOXYGEN definition, comment out reference to not-yet-existent "image" (diff)
downloadipxe-8bf79021411d846150fece2eb5054873fa18a4cf.tar.gz
ipxe-8bf79021411d846150fece2eb5054873fa18a4cf.tar.xz
ipxe-8bf79021411d846150fece2eb5054873fa18a4cf.zip
Added rules to generate documentation using doxygen
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 1f06d698..ed4ba51d 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -422,6 +422,28 @@ $(BIN)/%.rebuild :
rm -f $(BIN)/$*
$(MAKE) $(MAKEFLAGS) $(BIN)/$*
+# Documentation
+#
+$(BIN)/doxygen.cfg : doxygen.cfg $(MAKEDEPS)
+ $(PERL) -pe 's{\@SRCDIRS\@}{$(SRCDIRS)}; s{\@BIN\@}{$(BIN)};' $< > $@
+
+$(BIN)/doc : $(BIN)/doxygen.cfg
+ $(DOXYGEN) $<
+
+.PHONY : $(BIN)/doc
+
+VERYCLEANUP += $(BIN)/doc
+
+doc : $(BIN)/doc
+
+docview :
+ @[ -f $(BIN)/doc/html/index.html ] || $(MAKE) $(BIN)/doc
+ @if [ -n "$$BROWSER" ] ; then \
+ ( $$BROWSER $(BIN)/doc/html/index.html & ) ; \
+ else \
+ echo "Documentation index in $(BIN)/doc/html/index.html" ; \
+ fi
+
# Clean-up
#
clean :