2002-12-05 Theodore A. Roth * doc/api/Makefile.am: Generate a time-stamp file after fixing png's and anchors to inhibit unnecessary fixes. [Bug #1808] Index: doc/api/Makefile.am =================================================================== RCS file: /cvsroot/avr-libc/avr-libc/doc/api/Makefile.am,v retrieving revision 1.31 diff -u -r1.31 Makefile.am --- doc/api/Makefile.am 26 Nov 2002 22:31:10 -0000 1.31 +++ doc/api/Makefile.am 5 Dec 2002 23:02:45 -0000 @@ -33,7 +33,7 @@ MAINTAINERCLEANFILES = Makefile.in stamp-vti CLEANFILES = *.html *.pdf *.ma *.mas *.ps doxygen-pdf.config \ - *.png *.eps + *.png *.eps fix_png fix_anchors EXTRA_DIST = dox.css dox_html_header dox_html_footer \ main_page.dox \ @@ -95,17 +95,22 @@ html: demo $(TARGET_DOX_HTML) fix_png fix_anchors # Make the background color of the png's transparent. -fix_png: +fix_png: $(wildcard $(USER_MANUAL)/*.png) cd $(USER_MANUAL) || exit 0; \ for png in *.png; do \ echo "Fixing transparency for $$png"; \ $(PNGTOPNM) $$png > tmp.pnm; \ $(PNMTOPNG) -transparent white tmp.pnm > $$png && rm tmp.pnm; \ done + echo `date` > fix_png -# doxygen generates bogus anchors if you unless you use anchor in the \mainpage +# doxygen generates bogus anchors unless you use anchor in the \mainpage # or \page sections. It is easily fixed though. -fix_anchors: + +FIX_ANCHORS = $(USER_MANUAL)/assembler.html \ + $(USER_MANUAL)/group__avr__stdio.html + +fix_anchors: $(FIX_ANCHORS) cd $(USER_MANUAL) || exit 0; \ sed 's/"avr_\(stdio.html#stdio_note\)/"group__avr__\1/g' \ group__avr__stdio.html > fix.html; \ @@ -113,6 +118,7 @@ sed 's/"avr_\(interrupts.html#avr_signames\)"/"group__avr__\1"/g' \ assembler.html > fix.html; \ mv fix.html assembler.html + echo `date` > fix_anchors # Rule for generating PDF output pdf: demo $(TARGET_DOX_PDF) @@ -243,5 +249,4 @@ .PHONY: html latex ps pdf dox dox-pdf install-pdf install-html install-ps \ - install-dox-html install-dox-ps install-dox-pdf fix_png - + install-dox-html install-dox-ps install-dox-pdf