# $Id$ # Makefile template for the Alice HLT documentation # #*********************************************************************** # # Alice HLT project # Copyright (c) 2005 # # This file is property of and copyright by the Experimental Nuclear # Physics Group, Dep. of Physics and Technology # University of Bergen, Norway, 2004 # This file has been written by Matthias Richter, # Matthias.Richter@ift.uib.no # # Permission to use, copy, modify and distribute this software and its # documentation strictly for non-commercial purposes is hereby granted # without fee, provided that the above copyright notice appears in all # copies and that both the copyright notice and this permission notice # appear in the supporting documentation. The authors make no claims # about the suitability of this software for any purpose. It is # provided "as is" without express or implied warranty. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # #***********************************************************************/ EXTRA_DIST = mainpage.c \ pics/HLT-AliRoot-Integration_overview.png \ pics/HLT-AliRoot-Integration_overview.eps \ pics/HLT-AliRoot-Integration_overview.png \ pics/HLT-AliRoot-Integration_overview.eps \ pics/PubSub_WrapperComponent.png if HAVE_DOXYGEN HTML = html/index.html MODULES = #PDF = latex/refman.pdf TAGS = $(PACKAGE).tags else HTML = TAGS = endif DISTCLEANFILES = doxy.log $(PACKAGE).tags CLEANFILES = $(MODULES:%=$(PACKAGE).%.tags) \ $(MODULES:%=%.conf) SECTION_FILTER = Directory File CLASS_FILTER = structAliHLTRawBuffer \ classAliHLTDataBuffer \ structAliHLTDataSegment \ TObject \ structAliHLTComponentEnvironment %.png:%.fig fig2dev -Lpng $< all-local:$(HTML) $(PDF) $(MODULES) clean-local: rm -rf *~ html latex man readme.c readme.c: @top_srcdir@/README @cat $< | sed -e '/^=/s|=||g' -e '/^-/s|-||g' | \ sed -e '/^+/d' | \ sed -e '/^[0-9]. /s|^\([0-9]*\)\.|@section readme_\1 |' | \ sed -e '/^[0-9]*.[0-9] /s|^\([0-9]*\)\.\([0-9]*\)|@subsection readme_\1_\2 |' | \ sed -e '/^ [-()\]\)|\\\1|g' | \ sed -e '/^ [-()\ \1
|' | \ sed -e 's|\!\!\!\!||' -e 's|\!\!\!||' > $@_work @echo '/** @file readme.c' > $@ @echo ' @author Matthias Richter' >> $@ @echo ' @brief autogenerated from README.' >> $@ @echo ' @see @ref readme */' >> $@ @echo '/** ' >> $@ @echo ' @page readme README' >> $@ @echo ' @section readme_toc TOC' >> $@ @(for i in `cat $@_work | sed -e /@section/!d | cut -d ' ' -f 2` ; do \ echo "- @ref $$i" ; \ done ) >> $@ @echo >> $@ @cat $@_work >> $@ @echo '*/' >> $@ @rm $@_work $(HTML) $(PACKAGE).tags: doxygen.conf Makefile mainpage.c readme.c $(DOXYGEN) $< %.conf: doxymodule.conf Makefile cat $< | sed -e "s|@DOXYMODULE@|$(@:.conf=)|" > $@ html/%/index.html: %.conf $(DOXYGEN) $< $(MODULES:%=html/%): @mkdir -p $@ $(MODULES): $(MODULES:%=html/%) $(MODULES:%=html/%/index.html) $(MODULES:%=clean-%): rm -r html/$(patsubst clean-%,%,$(@)) tar-ball:$(HTML) if test -f html/index.html ; then \ mv html $(PACKAGE) ; \ tar -czvf ../$(PACKAGE)-$(VERSION)-doc.tar.gz $(PACKAGE) ; \ mv $(PACKAGE) html ; fi $(PDF:.pdf=.tex_): $(PDF:.pdf=.tex) cat $< \ $(foreach i, $(SECTION_FILTER), \ | sed -e '/$i Documentation/,/section/ { /input/d}' \ | sed -e '/$i Documentation/ d' \ ) \ $(foreach i, $(CLASS_FILTER), \ | sed -e '/input{$i}/d' \ ) \ > $@ cp -a $@ $< $(PDF): latex/Makefile $(PDF:.pdf=.tex_) @(cd latex && $(MAKE)) # # EOF #