forked from Imagelibrary/rtems
Ralf's comments follow:
Changes:
* Enhanced versioning:
- Addition of automake's version.texi support
- Replacement of rtemsdoc's former versioning support by automake's
versioning support (Abandoning RTEMS-UPDATE-* etc.)
- Abandoning setup.texi.in
- Add EDITION to each documents Makefile.am
- version.texi support in project.am
- Addition of maintainer mode (currently only used to prevent incorrectly
updating timestamps when users touch automake's version.texi timestamp
files (stamp-vti)).
* Fixing info dir support
- Use texinfo's @dircategory and @direntry instead of infos *-DIR-ENTRY
- $(infodir)/dir is now correctly set up
* Avoid using temporary files
- Pipe texts through REPLACE2 into BMENU2 instead of using temporary files.
- Abandon using bmenu in favor of bmenu2 (bmenu could be removed now)
* Prepare Makefile.ams for building in a separate buildtree
- prefix files with $(srcdir) in Makefile.am for files which must be
generated inside of the source tree
Notes:
* rtemsdoc can not yet be build in a separate source-tree, but we
are very close to it.
* You as the maintainer of this package now should always use
--enable-maintainer-mode to configure rtemsdoc.
88 lines
1.9 KiB
Plaintext
88 lines
1.9 KiB
Plaintext
## $Id$
|
|
|
|
SUFFIXES += .t
|
|
|
|
## Texinfo support
|
|
TEXINFO_TEX = $(top_srcdir)/texinfo/texinfo.tex
|
|
|
|
$(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) $< > $@
|
|
endif
|
|
|
|
if TEXI2PDF
|
|
.texi.pdf:
|
|
TEXINPUTS=$(srcdir)/$(top_srcdir)/texinfo:$$TEXINPUTS \
|
|
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2PDF) $<
|
|
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) \
|
|
-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
|