Simplify code.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 17 Nov 2011 20:14:01 +0200
changeset 833 023190b14d77
parent 832 6ee7dee9df3a
child 834 07219d4d737e
Simplify code.
Makefile
--- a/Makefile	Thu Nov 17 20:11:19 2011 +0200
+++ b/Makefile	Thu Nov 17 20:14:01 2011 +0200
@@ -75,7 +75,7 @@
 .PHONY: install
 install: .emacs .emacs-my .emacs-pre .emacs-post $(FILES_MODE_EL)
 	for file in .emacs-pre .emacs-post; do \
-		if [ ! -f $(HOME)/$$file ]; then cp $$file $(HOME)/$$file; fi; \
+		[ -f $(HOME)/$$file ] || cp $$file $(HOME)/$$file; \
 	done
 	cp .emacs $(HOME)/.emacs
 	cp .emacs-my $(HOME)/.emacs-my