diff options
author | Michael Brown <mcb30@etherboot.org> | 2005-05-18 11:13:34 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2005-05-18 11:13:34 +0000 |
commit | 8bf79021411d846150fece2eb5054873fa18a4cf (patch) | |
tree | 65f2a0493e3efab6a592c15de449fc893bfd63e9 /src/Makefile.housekeeping | |
parent | 2d9fa8a1d9bd51d0bb27d4fb1ca82d4c7c865b94 (diff) | |
download | ipxe-8bf79021411d846150fece2eb5054873fa18a4cf.tar.gz |
Added rules to generate documentation using doxygen
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 22 |
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 : |