summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy/rte
diff options
context:
space:
mode:
authorVladimir Volovich <vvv@vsu.ru>2008-03-20 05:15:22 +0000
committerVladimir Volovich <vvv@vsu.ru>2008-03-20 05:15:22 +0000
commit5930eec86e1831ca9842291fb407cb42e23b52ae (patch)
tree9d1ed3c6c03a540feda35d9f64faf68edbcf543c /Build/source/utils/xindy/rte
parent85040eb45f81b3b817c56ff70419bba1f3f1055b (diff)
add support for building xindy from outside of the source tree, for the standard TL build to work
git-svn-id: svn://tug.org/texlive/trunk@7034 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/xindy/rte')
-rw-r--r--Build/source/utils/xindy/rte/Makefile.am3
-rw-r--r--Build/source/utils/xindy/rte/ordrules/Makefile.in6
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/utils/xindy/rte/Makefile.am b/Build/source/utils/xindy/rte/Makefile.am
index 1e0957ec8dd..f1c852e57cc 100644
--- a/Build/source/utils/xindy/rte/Makefile.am
+++ b/Build/source/utils/xindy/rte/Makefile.am
@@ -72,9 +72,12 @@ check:
$(MAKE) -C $(clisp_builddir) check || $(MAKE) -C $(clisp_builddir) check
endif
+ORDRULES_FILES = ordrules.c ordrules.h rxsub.c rxsub.h mkind.h debug.h link.sh
+
xindy-build-dir: $(CLISP_PREREQ)
$(RM_R) xindy-build-dir
$(MAKE) -C ordrules ordrulei.c
+ test -f ordrules/link.sh || for i in $(ORDRULES_FILES); do cp $(top_srcdir)/rte/ordrules/$$i ordrules/; done
$(clisp_link) add-module-set ordrules $(fulldir) $@
cp $@/lisp.run $(binariesdir)/xindy.run
cp $@/lispinit.mem $(binariesdir)/base.mem
diff --git a/Build/source/utils/xindy/rte/ordrules/Makefile.in b/Build/source/utils/xindy/rte/ordrules/Makefile.in
index fa329f6ed85..72099d09c7e 100644
--- a/Build/source/utils/xindy/rte/ordrules/Makefile.in
+++ b/Build/source/utils/xindy/rte/ordrules/Makefile.in
@@ -6,6 +6,8 @@
#
# copied from CLISP module regex
+@SET_MAKE@
+srcdir = @srcdir@
CC = @CC@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
@@ -15,8 +17,8 @@ CLISP = $(CLISP_PATH) -q -norc
all : ordrulei.o ordrules.o rxsub.o
-ordrulei.c : ordrulei.lsp
- $(CLISP) -c ordrulei.lsp
+ordrulei.c : $(srcdir)/ordrulei.lsp
+ $(CLISP) -c $(srcdir)/ordrulei.lsp -o ordrulei.fas
ordrulei.o : ordrulei.c
$(CC) $(CFLAGS) -I$(INCLUDES) -c ordrulei.c