diff options
Diffstat (limited to 'Build/source/texk/web2c/mfluadir/am/mflua.am')
-rw-r--r-- | Build/source/texk/web2c/mfluadir/am/mflua.am | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/mfluadir/am/mflua.am b/Build/source/texk/web2c/mfluadir/am/mflua.am index 14a52bb95ff..8b4546ae716 100644 --- a/Build/source/texk/web2c/mfluadir/am/mflua.am +++ b/Build/source/texk/web2c/mfluadir/am/mflua.am @@ -11,17 +11,36 @@ if MFLUAN bin_PROGRAMS += mflua-nowin endif MFLUAN if WIN32 -bin_PROGRAMS += inimflua +noinst_PROGRAMS += call_mflua +install_exe_links += install-mflua-links +uninstall_exe_links += uninstall-mflua-links else !WIN32 +if !MFLUAN +bin_links += mflua$(EXEEXT):mflua-nowin +endif !MFLUAN bin_links += mflua$(EXEEXT):inimflua endif !WIN32 endif MFLUA EXTRA_PROGRAMS += mflua mflua-nowin DISTCLEANFILES += mfluatrap.diffs -inimflua_CPPFLAGS = -DEXEPROG=\"mflua.exe\" -nodist_inimflua_SOURCES = callexe.c -inimflua_LDADD = +call_mflua_CPPFLAGS = -DEXEPROG=\"mflua.exe\" +nodist_call_mflua_SOURCES = callexe.c +call_mflua_LDADD = + +.PHONY: install-mflua-links uninstall-mflua-links +if WIN32 +install-mflua-links: call_mflua$(EXEEXT) +if !MFLUAN + $(INSTALL_PROGRAM) call_mflua$(EXEEXT) $(DESTDIR)$(bindir)/mflua-nowin$(EXEEXT) +endif !MFLUAN + $(INSTALL_PROGRAM) call_mflua$(EXEEXT) $(DESTDIR)$(bindir)/inimflua$(EXEEXT) +uninstall-mflua-links: +if !MFLUAN + rm -f $(DESTDIR)$(bindir)/mflua-nowin$(EXEEXT) +endif !MFLUAN + rm -f $(DESTDIR)$(bindir)/inimflua$(EXEEXT) +endif WIN32 dist_mflua_SOURCES = mfluadir/mfluaextra.c mfluadir/mfluaextra.h mfluadir/mflua_version.h mflua_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS) $(LUA_INCLUDES) |