--- a/Makefile Sun Jun 20 05:42:04 2010 +0300
+++ b/Makefile Wed Jul 28 22:52:12 2010 +0300
@@ -12,7 +12,8 @@
host_os = windows
endif
-OVERRIDDEN_ITEMS = .Xdefaults .bashrc .mailsign .xinitrc .mc .vimrc .inputrc .ssh .hgrc .hgignore .bazaar .minttyrc
+OVERRIDDEN_ITEMS = .Xdefaults .bashrc .mailsign .xinitrc .vimrc .inputrc .ssh .hgrc .hgignore .bazaar .minttyrc
+MANUALINSTALL_ITEMS = .mc
IFNONEXIST_ITEMS = .wgetrc
.PHONY: install
@@ -47,6 +48,14 @@
done; \
fi; \
done
+ mkdir -p $(HOME)/.mc
+ install -m 640 .mc/bashrc $(HOME)/.mc
+ install -m 640 .mc/ini $(HOME)/.mc
+ifeq '$(host_os)' 'windows'
+ install -m 640 .mc/bindings.cygwin $(HOME)/.mc/bindings
+else
+ install -m 640 .mc/bindings $(HOME)/.mc/bindings
+endif
.PHONY: uninstall
uninstall:
@@ -64,6 +73,8 @@
done; \
fi; \
done
+ rm -f $(HOME)/.mc/bashrc $(HOME)/.mc/ini $(HOME)/.mc/bindings
+ rmdir $(HOME)/.mc || :
.PHONY: clean
clean: