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

65 lines
1.3 KiB
Makefile
Raw 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@
mandir=@mandir@
SHELL=@SHELL@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_SCRIPT=@INSTALL_SCRIPT@
################################################################
# Documentation
################################################################
LATEX=latex
RUNTEX=../../man/runtex
DOC2TEX=../../man/doc2tex
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)
latex2html $(DOC)
mv html/index.html $@
$(PDF): $(TEX)
../../man/runtex --pdf $(DOC)
$(TEX): $(DOC2TEX)
.doc.tex:
$(DOC2TEX) $*.doc > $*.tex
# Get the Prolog dialect specific part of the Makefiles
include ../Dialect.defs