Fix: Solaris 'file' utility does not support '--compile' option and user
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 02 Jun 2016 22:02:14 +0300
changeset 802 d8ba282954cd
parent 801 2657c198b9e2
child 803 d788285e47d0
Fix: Solaris 'file' utility does not support '--compile' option and user supplied rc file.
Makefile
--- a/Makefile	Thu Jun 02 21:55:33 2016 +0300
+++ b/Makefile	Thu Jun 02 22:02:14 2016 +0300
@@ -147,11 +147,13 @@
 		$(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.mc; \
 		$(INSTALL_DATA) .config/mc/mc.ext $(HOME)/.mc/bindings; \
 	fi
+ifneq '' '$(filter $(host_os),cygwin linux)'
 	if command -v file 1>/dev/null; then \
 		$(INSTALL_DATA) .magic $(HOME); \
 		cd $(HOME); \
 		file --compile -m .magic; \
 	fi
+endif
 	mkdir -p $(HOME)/.local/share/applications/
 	$(INSTALL_DATA) .local/share/applications/mimeapps.list $(HOME)/.local/share/applications/