summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mpdir/am/mp.am
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/mpdir/am/mp.am')
-rw-r--r--Build/source/texk/web2c/mpdir/am/mp.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/mpdir/am/mp.am b/Build/source/texk/web2c/mpdir/am/mp.am
index b7074ef3250..b940dccbe8a 100644
--- a/Build/source/texk/web2c/mpdir/am/mp.am
+++ b/Build/source/texk/web2c/mpdir/am/mp.am
@@ -54,6 +54,11 @@ liboldmpost_a_SOURCES = \
# We must create mpd.h before building the liboldmpost_a_OBJECTS.
$(liboldmpost_a_OBJECTS): mpd.h
+# 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)
+
## Eventually delete these files
##
EXTRA_DIST += \