Install pre/post config into auto files.
--- a/Makefile Wed Jan 27 23:48:53 2010 +0200
+++ b/Makefile Thu Jan 28 19:51:11 2010 +0200
@@ -29,24 +29,16 @@
.PHONY: update-dot-emacs-pre
update-dot-emacs-pre:
+ printf ";; DO NOT EDIT! This file automatically generated.\n\n" >$(HOME)/.emacs-pre-auto
for file in `cd template-pre; ls *.el`; do \
- tag=$${file%.el}; \
- if grep "DO NOT EDIT COMMENT! TAG: $$tag" $(HOME)/.emacs-pre; then \
- :; \
- else \
- cat template-pre/$$file >>$(HOME)/.emacs-pre; \
- fi; \
+ cat template-pre/$$file >>$(HOME)/.emacs-pre-auto; \
done
.PHONY: update-dot-emacs-post
update-dot-emacs-post:
+ printf ";; DO NOT EDIT! This file automatically generated.\n\n" >$(HOME)/.emacs-post-auto
for file in `cd template-post; ls *.el`; do \
- tag=$${file%.el}; \
- if grep "DO NOT EDIT COMMENT! TAG: $$tag" $(HOME)/.emacs-post; then \
- :; \
- else \
- cat template-post/$$file >>$(HOME)/.emacs-post; \
- fi; \
+ cat template-post/$$file >>$(HOME)/.emacs-post-auto; \
done
.PHONY: tar