summaryrefslogtreecommitdiffstats
path: root/doc/project.am
blob: 0d1e03c6c6d09ab6f872d4c03c6d8147a07fb548 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
## $Id$

SUFFIXES += .t

## Texinfo support
TEXINFO_TEX = $(top_srcdir)/texinfo/texinfo.tex

MAINTAINERCLEANFILES += $(PROJECT) $(PROJECT)-[0-9] $(PROJECT)-[0-9][0-9]
MAINTAINERCLEANFILES += $(GENERATED_FILES)

## DVI support
dvidir = $(pkgdatadir)/dvi
## dvi_projectdir = $(dvidir)/$(PROJECT)

## PS support
psdir = $(pkgdatadir)/ps
## ps_projectdir = $(psdir)/$(PROJECT)

## PDF support
SUFFIXES += .pdf

pdfdir = $(pkgdatadir)/pdf
## pdf_projectdir = $(pdfdir)/$(PROJECT)

SUFFIXES += .eps

if EPSTOPDF
.eps.pdf:
	$(EPSTOPDF) $< > $@
endif

if TEXI2PDF
.texi.pdf:
	TEXINPUTS=$(srcdir)/$(top_srcdir)/texinfo:$$TEXINPUTS \
          MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2PDF) $<
endif

CLEANFILES += $(PROJECT).pdf

## HTML 
SUFFIXES += .html

html_projectdir = $(htmldir)/$(PROJECT)

TEXI2WWW_ARGS=\
-dirfile ../index.html \
-header $(top_builddir)/rtems_header.html \
-footer $(top_builddir)/rtems_footer.html \
-icons ../images

index.html $(PROJECT)*.html: $(PROJECT).texi \
	$(top_builddir)/rtems_header.html $(top_builddir)/rtems_footer.html
	$(TEXI2WWW) $(TEXI2WWW_ARGS) -base $(PROJECT) $<

MOSTLYCLEANFILES += index.html $(PROJECT)*.html

## Common installation points
if USE_HTML
html_project_DATA += index.html $(PROJECT)*.html
endif

if USE_DVI
dvi_DATA += $(PROJECT).dvi
endif

if USE_PS
ps_DATA += $(PROJECT).ps
endif

if USE_PDF
pdf_DATA += $(PROJECT).pdf
endif