This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/Makefile.defs.in

75 lines
1.6 KiB
Makefile
Raw Permalink Normal View History

2011-02-09 13:10:20 +00:00
################################################################
# Share Prolog-independent bits of the package makefiles.
################################################################
.SUFFIXES: .tex .dvi .doc .pl
# This is to have a simple 'make' build `all' instead of the local
# targets.
top: all
prefix=@prefix@
exec_prefix=@exec_prefix@
srcdir=@abs_srcdir@/$(PACKAGE)
bindir=@bindir@
libdir=@libdir@
2011-03-15 18:22:05 +00:00
datarootdir = @datarootdir@
2011-02-09 13:10:20 +00:00
mandir=@mandir@
SHELL=@SHELL@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_SCRIPT=@INSTALL_SCRIPT@
################################################################
# Documentation
################################################################
LATEX=latex
2011-06-12 22:26:04 +01:00
DOC2TEX=@abs_top_srcdir@/man/doc2tex
RUNTEX=@abs_top_srcdir@/man/runtex
2011-02-09 13:10:20 +00:00
TEX=$(DOC).tex $(SUBTEX)
DVI=$(DOC).dvi
PDF=$(DOC).pdf
HTML=$(DOC).html
ifneq ($(DOC),)
doc: pdf html
pdf: $(PDF)
html: $(HTML)
else
doc::
echo "No documentation provided"
pdf::
echo "No documentation provided"
html::
echo "No documentation provided"
endif
$(HTML): $(TEX)
$(bindir)/latex2html $(DOC)
2011-02-09 13:10:20 +00:00
$(PDF): $(TEX)
2011-06-12 22:26:04 +01:00
$(srcdir)/../../man/runtex --pdf $(DOC)
2011-02-09 13:10:20 +00:00
2011-06-12 22:26:04 +01:00
%.tex : $(srcdir)/%.doc
$(DOC2TEX) $< > $@
2011-02-09 13:10:20 +00:00
2011-06-12 22:26:04 +01:00
%.tex : $(srcdir)/%.txt
2012-02-13 09:41:22 +00:00
$(PUBLICPL) -f $(PLLIBDIR)/doc_latex -g "doc_latex('$<','$@',[stand_alone(false)]),halt" -t "halt(1)"
2011-06-12 22:26:04 +01:00
%.tex : $(srcdir)/%.pl
$(PLTOTEX) $< > $@
2011-02-09 13:10:20 +00:00
# Get the Prolog dialect specific part of the Makefiles
2012-02-13 09:41:22 +00:00
LIBSRCPL=$(addprefix $(srcdir)/, $(LIBPL))
LIBSRCALL=$(addprefix $(srcdir)/, $(LIBALL))
SRCXPCEPL=$(addprefix $(srcdir)/, $(XPCEPL))
2011-02-09 13:10:20 +00:00
include ../Dialect.defs