summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy/Makefile.am
blob: e21d951a7c0e8a481dd0b1810e9545616eaf4dc9 (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
## Makefile.am for the TeX Live subdirectory utils/xindy/
##
## Copyright (C) 2009-2013 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)/Makefile.am \
	$(XINDY_TREE)/VERSION \
	$(XINDY_TREE)/configure.ac \
	$(XINDY_TREE)/m4

# 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-dist/scripts/xindy
nodist_bin_SCRIPTS =

include $(srcdir)/../../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)