summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/tex4htk/Makefile.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/Build/source/texk/tex4htk/Makefile.in b/Build/source/texk/tex4htk/Makefile.in
index a96a5b4f295..ab5bc9b8e08 100644
--- a/Build/source/texk/tex4htk/Makefile.in
+++ b/Build/source/texk/tex4htk/Makefile.in
@@ -32,7 +32,17 @@ uninstall: uninstall-exec uninstall-data
install-exec: all
$(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
- for p in $(scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p $(bindir)/$$p; done
+ $(INSTALL) -d "$(prefix)/texmf-dist/scripts/tex4ht"
+ for p in $(scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p "$(prefix)/texmf-dist/scripts/tex4ht/$$p"; done
+ if test -d "$(bindir)/../../texmf-dist/scripts/tex4ht"; then \
+ d=../../texmf-dist/scripts/tex4ht; \
+ elif test -d "$(bindir)/../texmf-dist/scripts/tex4ht"; then \
+ d=../../texmf-dist/scripts/tex4ht; \
+ else \
+ echo "Error: texmf-dist/scripts/tex4ht directory not found"; \
+ false; \
+ fi; \
+ for p in $(scripts); do rm -f $(bindir)/$$p; ln -s $$d/$$p $(bindir)/$$p; done
uninstall-exec:
for p in $(programs) $(scripts); do rm -f $(bindir)/$$p; done