Write .PHONY exactly before target.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 27 Jan 2010 23:48:53 +0200
changeset 260 437507e141b4
parent 258 29533873ee3e
child 261 16b1f9a3ee99
Write .PHONY exactly before target.
Makefile
--- a/Makefile	Mon Jan 25 23:37:52 2010 +0200
+++ b/Makefile	Wed Jan 27 23:48:53 2010 +0200
@@ -4,12 +4,13 @@
   $(error Home env var not set!)
 endif
 
-.PHONY: all install preinstall install-all preinstall-all update-dot-emacs-pre update-dot-emacs-post tar
-
+.PHONY: all
 all: install
 
+.PHONY: install
 install: preinstall update-dot-emacs-pre update-dot-emacs-post
 
+.PHONY: preinstall
 preinstall: .emacs .emacs-my .emacs-pre .emacs-post
 	for file in .emacs-pre .emacs-post; do \
 		if [ ! -f $(HOME)/$$file ]; then cp $$file $(HOME)/$$file; fi; \
@@ -17,13 +18,16 @@
 	cp .emacs $(HOME)/.emacs
 	cp .emacs-my $(HOME)/.emacs-my
 
+.PHONY: install-all
 install-all: preinstall-all update-dot-emacs-pre update-dot-emacs-post
 
+.PHONY: preinstall-all
 preinstall-all: .emacs .emacs-my .emacs-pre .emacs-post
 	for file in $^; do \
 		cp $$file $(HOME)/$$file; \
 	done
 
+.PHONY: update-dot-emacs-pre
 update-dot-emacs-pre:
 	for file in `cd template-pre; ls *.el`; do \
 		tag=$${file%.el}; \
@@ -34,6 +38,7 @@
 		fi; \
 	done
 
+.PHONY: update-dot-emacs-post
 update-dot-emacs-post:
 	for file in `cd template-post; ls *.el`; do \
 		tag=$${file%.el}; \
@@ -44,8 +49,13 @@
 		fi; \
 	done
 
+.PHONY: tar
 tar:
 	tar cf dot-emacs.tar .emacs .emacs-my
 
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
 clean:
 	rm -f dot-emacs.tar