Added SILC Thread Queue API
[silc.git] / util / robodoc / Examples / CPP / makefile
1 # $Id$
2
3 ROBODOC=robodoc
4 DOCS=muppets.cpp.html muppets.h.html
5 XREF=$(DOCS:.html=.xref)
6
7 all: masterindex.html
8
9 myclean:
10         rm -f *~
11         rm -f *.xref
12         rm -f *.xrefs
13         rm -f *.html
14         rm -f xref_files
15 #
16 # This makefile shows how with a few rules you can generate
17 # the documentation from all your sources.
18 #
19
20 #
21 # create xrefs file (file with the names of all .xref files).
22 #
23 muppets.xrefs : $(XREF)
24         /bin/ls *.xref > $@
25
26 #
27 # Rule to create an .xref file.
28 #
29 %.xref : % muppets.xrefs
30         $(ROBODOC) $< $(@:.xref=.html) INTERNAL -g $@ -v
31
32 #
33 # Rule to create an .html file.
34 #
35 %.html : %
36         $(ROBODOC) $< $@ HTML INTERNAL -x muppets.xrefs -v
37
38 #
39 #
40 #
41 masterindex.html : muppets.xrefs $(DOCS)
42         $(ROBODOC) $< $@ INDEX HTML
43
44