blob: 1ca730ea56d264d5e648f95c2f0f89bc25620c6e (
plain)
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
|
# All SciTECO invocations should try to use the in-tree
# standard library library
export SCITECOPATH=@top_srcdir@/lib
# This provides two implementations of SciTECO running
# on the host as build-time tools.
# $(SCITECO_MINIMAL) can be used during the build-process
# of the target SciTECO, but may have only limited support for
# the ES command (no symbolic identifiers).
# $(SCITECO_FULL) is a final version of SciTECO, but is only
# available after the binary has been built in src/
# (ie. in SUBDIRS after src/).
if BOOTSTRAP
SCITECO_MINIMAL = @top_builddir@/src/sciteco-minimal$(EXEEXT)
SCITECO_FULL = @top_builddir@/src/sciteco$(EXEEXT)
else
SCITECO_MINIMAL = @SCITECO@
SCITECO_FULL = @SCITECO@
endif
# Path of installed `sciteco` and `sciteco-wrapper` binaries,
# taking --program-prefix into account.
# These variables MUST NOT be put in single-quotes.
SCITECO_INSTALLED = \
$(bindir)/`echo sciteco | @SED@ '$(transform)'`$(EXEEXT)
SCITECO_WRAPPER_INSTALLED = \
$(libexecdir)/`echo sciteco-wrapper | @SED@ '$(transform)'`$(EXEEXT)
SUBST_MACRO = eb$<\e \
<fs@PACKAGE^Q@\e@PACKAGE@\e;>j \
<fs@PACKAGE_NAME^Q@\e@PACKAGE_NAME@\e;>j \
<fs@PACKAGE_VERSION^Q@\e@PACKAGE_VERSION@\e;>j \
<fs@PACKAGE_URL^Q@\e@PACKAGE_URL@\e;>j \
<fs@PACKAGE_URL_DEV^Q@\e@PACKAGE_URL_DEV@\e;>j \
<fs@bindir^Q@\e$(bindir)\e;>j \
<fs@libexecdir^Q@\e$(libexecdir)\e;>j \
<fs@pkgdatadir^Q@\e$(pkgdatadir)\e;>j \
<fs@scitecolibdir^Q@\e$(scitecolibdir)\e;>j \
<fs@TECO_INTEGER^Q@\e@TECO_INTEGER@\e;>j \
^U[$$LC_ALL]C\e EG.d@DATE@ "+%d %b %Y"\e \
<fs@DATE^Q@\e^EQ.d\e; -D>j \
ew$@\e
# The SciTECO-based substitutor must not process config.h.in.
@top_srcdir@/config.h: ;
SUFFIXES = .in
.in:
$(SCITECO_MINIMAL) -e $$'$(SUBST_MACRO)'
|