summaryrefslogtreecommitdiffstats
path: root/doc/Makefile
blob: 5120e4a2230d8e03fc7c888379aa5a642a782bdc (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
#
#  $Id$
#

include Make.config

BASEDIR=$(shell pwd)

all: env info html ps pdf
#	find $(WWW_INSTALL) -type f | xargs -e chmod 444
#	find $(WWW_INSTALL) -type d | xargs -e chmod 555

env: tools dirs headers

dirs:
	$(make-dirs)

headers:
	sed -e 's/RTEMS_VERSION/$(RTEMS_VERSION)/' \
	    <$(SRCDIR)/index.html >$(WWW_INSTALL)/index.html
	sed -e 's/RTEMS_VERSION/$(RTEMS_VERSION)/' \
	    <$(SRCDIR)/rtems_support.html >$(WWW_INSTALL)/rtems_support.html
	sed -e 's/RTEMS_VERSION/$(RTEMS_VERSION)/' \
	    <$(SRCDIR)/rtems_header.html >$(WWW_INSTALL)/rtems_header.html
	sed -e 's/RTEMS_VERSION/$(RTEMS_VERSION)/' \
	    <$(SRCDIR)/rtems_footer.html >$(WWW_INSTALL)/rtems_footer.html

info: env
	./do_docs $(BASEDIR) info

html: env
	./do_docs $(BASEDIR) html

dvi: dirs env
	./do_docs $(BASEDIR) dvi

ps: dirs env
	./do_docs $(BASEDIR) ps

pdf: dirs env
	./do_docs $(BASEDIR) pdf

clean:
	./do_docs $(BASEDIR) clean
	cd tools/bmenu ; gmake clean
	cd tools/pdl2texi ; gmake clean
	cd tools/src2html ; gmake clean


.PHONY: tools

tools:
	cd tools/bmenu ; gmake 
	cd tools/pdl2texi ; gmake 
	cd tools/src2html ; gmake