# HG changeset patch # User Oleksandr Gavenko # Date 1264628933 -7200 # Node ID 437507e141b4a009c1c8150a94d74314f329f85a # Parent 29533873ee3e5c520f4e0a5543b7640ae888d953 Write .PHONY exactly before target. diff -r 29533873ee3e -r 437507e141b4 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