File: makefile

package info (click to toggle)
robodoc 3.2.2-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 636 kB
  • ctags: 474
  • sloc: ansic: 2,939; sh: 441; makefile: 226; cpp: 4
file content (44 lines) | stat: -rw-r--r-- 747 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $Id: makefile,v 1.2 2000/06/28 20:21:06 gumpu Exp $

ROBODOC=robodoc
DOCS=muppets.cpp.html muppets.h.html
XREF=$(DOCS:.html=.xref)

all: masterindex.html

myclean:
	rm -f *~
	rm -f *.xref
	rm -f *.xrefs
	rm -f *.html
	rm -f xref_files
#
# This makefile shows how with a few rules you can generate
# the documentation from all your sources.
#

#
# create xrefs file (file with the names of all .xref files).
#
muppets.xrefs : $(XREF)
	/bin/ls *.xref > $@

#
# Rule to create an .xref file.
#
%.xref : % muppets.xrefs
	$(ROBODOC) $< $(@:.xref=.html) INTERNAL -g $@ -v

#
# Rule to create an .html file.
#
%.html : %
	$(ROBODOC) $< $@ HTML INTERNAL -x muppets.xrefs -v

#
#
#
masterindex.html : muppets.xrefs $(DOCS)
	$(ROBODOC) $< $@ INDEX HTML