summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mplibdir/am/mplib.am
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/mplibdir/am/mplib.am')
-rw-r--r--Build/source/texk/web2c/mplibdir/am/mplib.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mplibdir/am/mplib.am b/Build/source/texk/web2c/mplibdir/am/mplib.am
index cc5fa19e19f..891a9ef3fec 100644
--- a/Build/source/texk/web2c/mplibdir/am/mplib.am
+++ b/Build/source/texk/web2c/mplibdir/am/mplib.am
@@ -38,6 +38,13 @@ EXTRA_DIST += mplibdir/ChangeLog $(mpost_web)
DISTCLEANFILES += $(nodist_mpost_SOURCES) mpxout-ctangle
+# Double-colon rule since we do something similar in luatexdir (maybe others).
+install-exec-hook::
+ cd $(DESTDIR)$(bindir) && rm -f dvitomp$(EXEEXT) \
+ && $(LN_S) mpost$(EXEEXT) dvitomp$(EXEEXT)
+uninstall-hook::
+ rm -f $(DESTDIR)$(bindir)/dvitomp$(EXEEXT)
+
## MetaPost Tests
##
mp_tests = mplibdir/mptrap.test