summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy/Makefile.am
blob: 2ee8f4532b38c14a5c3c8c59aa94b7beafde267e (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
## Makefile.am for the TeX Live subdirectory utils/xindy/
##
## Copyright (C) 2009-2012 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4

EXTRA_DIST = README-clisp

## We use the original xindy source tree.
##
SUBDIRS = . $(XINDY_TREE)
DIST_SUBDIRS = $(SUBDIRS)

## Patches applied to the original source tree
##
EXTRA_DIST += $(XINDY_TREE)-PATCHES

## We must explicitly distribute some top-level files.
##
EXTRA_DIST += \
	$(XINDY_TREE)/AUTHORS \
	$(XINDY_TREE)/COPYING \
	$(XINDY_TREE)/INSTALL \
	$(XINDY_TREE)/Makefile.am \
	$(XINDY_TREE)/README \
	$(XINDY_TREE)/NEWS \
	$(XINDY_TREE)/VERSION \
	$(XINDY_TREE)/m4 \
	$(XINDY_TREE)/configure.ac

## For future reorganisation of alphabets/Makefile.am,
## used to build alphabets/LANG/Makefile.am fragments.
##
EXTRA_DIST += \
	$(XINDY_TREE)/make-rules/alphabets/Makefile.am.not-yet \
	$(XINDY_TREE)/make-rules/alphabets/lang.defs \
	$(XINDY_TREE)/make-rules/alphabets/mk-lang.sh

# in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir) -name .svn`

all-local: config.force

config.force:
	echo timestamp >config.force
	$(SHELL) ./config.status --recheck

DISTCLEANFILES = config.force

perl_scripts = texindy xindy
scriptsdir = texmf/scripts/xindy
nodist_bin_SCRIPTS =

include $(srcdir)/../../texk/am/script_links.am

install-data-hook: install-perl-links

install-exec-hook:
if CLISP_RUNTIME
	$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) "$(LISP_RUN)" "$(DESTDIR)$(bindir)/$(XINDY_RUN)"
endif CLISP_RUNTIME

uninstall-hook: uninstall-links
if CLISP_RUNTIME
	rm -f "$(DESTDIR)$(bindir)/$(XINDY_RUN)"
endif CLISP_RUNTIME

texmfdir = $(datarootdir)/$(scriptsdir)
nodist_texmf_SCRIPTS = $(perl_scripts:=.pl)

%.pl: $(XINDY_TREE)/user-commands/%.in
	$(AM_V_GEN)sed -e 's:@is_TL\@:yes:' $< >$@
	$(AM_V_at)chmod +x $@

CLEANFILES = $(nodist_bin_SCRIPTS) $(nodist_texmf_SCRIPTS)