diff options
Diffstat (limited to 'Build/source/texk/tex4htk/Makefile.am')
-rw-r--r-- | Build/source/texk/tex4htk/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/texk/tex4htk/Makefile.am b/Build/source/texk/tex4htk/Makefile.am index 97a04645c14..6c6bb1e424d 100644 --- a/Build/source/texk/tex4htk/Makefile.am +++ b/Build/source/texk/tex4htk/Makefile.am @@ -35,12 +35,21 @@ tex4ht_SCRIPTS = if WIN32 dist_bin_SCRIPTS = $(shell_scripts:=.bat) +if WIN32_WRAP +## We treat the WIN32 wrappers as SCRIPTS to avoid automatic build rules +nodist_bin_SCRIPTS = $(perl_scripts:=.exe) $(shell_scripts:=.exe) +runscript = $(srcdir)/../texlive/w32_wrapper/runscript.exe +$(nodist_bin_SCRIPTS): $(runscript) + $(LN_S) $(runscript) $@ +endif WIN32_WRAP else !WIN32 ## Make sure $(bindir) exists ## dist_bin_SCRIPTS = endif !WIN32 +CLEANFILES = $(nodist_bin_SCRIPTS) + # We support both multiplatform and non-multiplatform builds. install-data-hook: @for p in $(perl_scripts); do \ @@ -51,12 +60,14 @@ install-data-hook: echo "$(INSTALL_SCRIPT) $(srcdir)/$$p '$(DESTDIR)$(tex4htdir)/$$p.sh'"; \ $(INSTALL_SCRIPT) $(srcdir)/$$p "$(DESTDIR)$(tex4htdir)/$$p.sh"; \ done +if !WIN32 case "$(bindir)" in \ */bin) $(MAKE) $(AM_MAKEFLAGS) REL=.. install-links;; \ */bin/*) $(MAKE) $(AM_MAKEFLAGS) REL=../.. install-links;; \ *) echo "strange directory '$(bindir)' for linked scripts" >&2; \ exit 1;; \ esac +endif !WIN32 ## Link to the basename, removing the extension, .PHONY: install-links @@ -78,10 +89,12 @@ uninstall-hook: echo "rm -f '$(DESTDIR)$(tex4htdir)/$$p'"; \ rm -f "$(DESTDIR)$(tex4htdir)/$$p"; \ done +if !WIN32 @for p in $(perl_scripts) $(shell_scripts); do \ echo "rm -f '$(DESTDIR)$(bindir)/$$p'"; \ rm -f "$(DESTDIR)$(bindir)/$$p"; \ done +endif !WIN32 ## Not used ## |