diff --git a/misc/Makefile.am b/misc/Makefile.am index db4ddc3c5..7d005b272 100644 --- a/misc/Makefile.am +++ b/misc/Makefile.am @@ -22,7 +22,6 @@ SCRIPTS_OUT = \ LIBFILES_CONST = \ filehighlight.ini \ - mc.keymap \ mc.default.keymap \ mc.emacs.keymap @@ -52,3 +51,9 @@ EXTRA_DIST = \ if !CHARSET EXTRA_DIST += mc.charsets endif + +install-data-hook: + cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap && $(LN_S) mc.default.keymap mc.keymap + +uninstall-hook: + cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap