Write .PHONY exactly before target.
--- 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