File: Makefile.defs.in

package info (click to toggle)
swi-prolog 7.2.3%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 84,180 kB
  • ctags: 45,684
  • sloc: ansic: 330,358; perl: 268,104; sh: 6,795; java: 4,904; makefile: 4,561; cpp: 4,153; ruby: 1,594; yacc: 843; xml: 82; sed: 12; sql: 6
file content (65 lines) | stat: -rw-r--r-- 1,459 bytes parent folder | download | duplicates (3)
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
################################################################
# Share Prolog-independent bits of the package makefiles.
################################################################

.SUFFIXES: .tex .dvi .doc .txt .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@
datarootdir=@datarootdir@
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)

$(PDF):		$(TEX)
		../../man/runtex --pdf $(DOC)

$(TEX):		$(DOC2TEX)

.doc.tex:
		$(DOC2TEX) $*.doc > $*.tex

# Get the Prolog dialect specific part of the Makefiles
# See http://stackoverflow.com/questions/8074372/make-include-in-makefiles-be-relative-to-the-files-location

SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
include $(SELF_DIR)/Dialect.defs