mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
* SUPPORT, LICENSE: New files. * Numerous files touched as part of merging the 4.5 branch onto the mainline development trunk and ensuring that the script that cuts snapshots and releases works on the documentation.
114 lines
2.5 KiB
Plaintext
114 lines
2.5 KiB
Plaintext
## $Id$
|
|
|
|
SUFFIXES += .t
|
|
|
|
## Texinfo support
|
|
TEXINFO_TEX = ../texinfo/texinfo.tex
|
|
## TEXINPUTS = $(srcdir):$(top_srcdir)
|
|
TEXI_COMMON = -I ..
|
|
|
|
.texi:
|
|
@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
|
|
cd $(srcdir) && \
|
|
$(MAKEINFO) $(TEXI_COMMON) `echo $< | sed 's,.*/,,'`
|
|
|
|
$(srcdir)/stamp-vti: $(PROJECT).texi $(top_srcdir)/configure.in
|
|
@echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh \
|
|
$(srcdir)/$(PROJECT).texi`" > vti.tmp
|
|
@echo "@set EDITION $(EDITION)" >> vti.tmp
|
|
@echo "@set VERSION $(VERSION)" >> vti.tmp
|
|
@cmp -s vti.tmp $(srcdir)/version.texi \
|
|
|| (echo "Updating $(srcdir)/version.texi"; \
|
|
cp vti.tmp $(srcdir)/version.texi)
|
|
-@rm -f vti.tmp
|
|
@cp $(srcdir)/version.texi $@
|
|
|
|
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) $< --outfile=$@
|
|
endif
|
|
|
|
$(PROJECT).pdf: $(PROJECT).texi $($(PROJECT)_TEXINFOS) $(PDF_IMAGES)
|
|
CLEANFILES += $(PROJECT).pdf
|
|
|
|
MOSTLYCLEANFILES += $(PDF_IMAGES)
|
|
|
|
## HTML
|
|
SUFFIXES += .html
|
|
|
|
html_projectdir = $(htmldir)/$(PROJECT)
|
|
|
|
TEXI2WWW_ARGS=\
|
|
-I $(srcdir) \
|
|
-I $(top_srcdir) \
|
|
-dirfile ../index.html \
|
|
-header rtems_header.html \
|
|
-footer rtems_footer.html \
|
|
-icons $(top_builddir)/images
|
|
|
|
rtems_header.html: $(top_srcdir)/rtems_header.html.in version.texi
|
|
@sed -e s%\.\./images/%$(top_builddir)/images/%g \
|
|
-e s%\@VERSION\@%@VERSION@%g \
|
|
< $< > $@
|
|
rtems_footer.html: $(top_srcdir)/rtems_footer.html.in version.texi
|
|
@sed -e s%\.\./images/%$(top_builddir)/%g \
|
|
-e s%\@VERSION\@%@VERSION@%g \
|
|
< $< > $@
|
|
|
|
index.html $(PROJECT)*.html: $(PROJECT).texi \
|
|
rtems_header.html rtems_footer.html
|
|
$(TEXI2WWW) $(TEXI2WWW_ARGS) -base $(PROJECT) $<
|
|
|
|
MOSTLYCLEANFILES += index.html $(PROJECT)*.html rtems_header.html \
|
|
rtems_footer.html
|
|
|
|
## Common installation points
|
|
if USE_HTML
|
|
html_project_DATA += index.html $(PROJECT)*.html
|
|
endif
|
|
|
|
if USE_DVI
|
|
dvi_DATA += $(PROJECT).dvi
|
|
|
|
.texi.dvi:
|
|
$(TEXI2DVI) -q -I $(srcdir) -I $(top_srcdir) $<
|
|
|
|
if USE_PS
|
|
ps_DATA += $(PROJECT).ps
|
|
.dvi.ps:
|
|
TEXINPUTS=$(srcdir):$$TEXINPUTS \
|
|
$(DVIPS) $< -o $@
|
|
endif # USE_PS
|
|
|
|
endif # USE_DVI
|
|
|
|
if USE_PDF
|
|
pdf_DATA += $(PROJECT).pdf
|
|
|
|
if TEXI2PDF
|
|
.texi.pdf:
|
|
rm -f *.aux *.cp *.fn *.ky *.pg *.tp *.toc *.vr
|
|
$(TEXI2PDF) -q -I $(srcdir) -I $(top_srcdir) $<
|
|
endif
|
|
|
|
endif
|