Makefile
changeset 324 e30f2ac488aa
parent 312 fc29a6c443ba
child 328 3e80c4af5ab6
equal deleted inserted replaced
323:55f697ab8790 324:e30f2ac488aa
    90 		fi; \
    90 		fi; \
    91 	done
    91 	done
    92 	chmod a+x ~/.xinitrc ~/.xserverrc
    92 	chmod a+x ~/.xinitrc ~/.xserverrc
    93 	rm -f ~/.xsession
    93 	rm -f ~/.xsession
    94 	ln -s ~/.xinitrc ~/.xsession
    94 	ln -s ~/.xinitrc ~/.xsession
    95 	mkdir -p $(HOME)/.mc
    95 	v=`mc --version | sed 's|.*\([0-9]\+\.[0-9]\+\.[0-9]\+\)$$|\1|;q'`; \
    96 	install -m 640 .mc/bashrc $(HOME)/.mc
    96 	vmajor=$${v%%.*}; \
    97 ifeq '$(host_os)' 'cygwin'
    97 	vminor=$${v#*.}; \
    98 	install -m 640 .mc/bindings.cygwin $(HOME)/.mc/bindings
    98 	vminor=$${vminor%.*}; \
    99 else
    99 	if [ $$vmajor -gt 4 -o '(' $$vmajor -eq 4 -a $$vminor -ge 8 ')' ]; then \
   100 	install -m 640 .mc/bindings $(HOME)/.mc/bindings
   100 		mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \
   101 endif
   101 		install -m 640 .local/share/mc/bashrc $(HOME)/.local/share/mc/; \
       
   102 		if [ '$(host_os)' = 'cygwin' ]; then \
       
   103 			install -m 640 .config/mc/mc.ext.cygwin $(HOME)/.config/mc/mc.ext; \
       
   104 		else \
       
   105 			install -m 640 .config/mc/mc.ext $(HOME)/.config/mc/mc.ext; \
       
   106 		fi; \
       
   107 	else \
       
   108 		mkdir -p $(HOME)/.mc; \
       
   109 		install -m 640 .local/share/mc/bashrc $(HOME)/.mc; \
       
   110 		if [ '$(host_os)' = 'cygwin' ]; then \
       
   111 			install -m 640 .config/mc/mc.ext.cygwin $(HOME)/.mc/bindings; \
       
   112 		else \
       
   113 			install -m 640 .config/mc/mc.ext $(HOME)/.mc/bindings; \
       
   114 		fi; \
       
   115 	fi
   102 	if command -v file 1>/dev/null; then \
   116 	if command -v file 1>/dev/null; then \
   103 		install -m 640 .magic $(HOME); \
   117 		install -m 640 .magic $(HOME); \
   104 		cd $(HOME); \
   118 		cd $(HOME); \
   105 		file --compile -m .magic; \
   119 		file --compile -m .magic; \
   106 	fi
   120 	fi