equal
deleted
inserted
replaced
6 |
6 |
7 .PHONY: all |
7 .PHONY: all |
8 all: install |
8 all: install |
9 |
9 |
10 .PHONY: install |
10 .PHONY: install |
11 install: preinstall update-dot-emacs-pre update-dot-emacs-post |
11 install: preinstall update-dot-emacs-pre |
12 |
12 |
13 .PHONY: preinstall |
13 .PHONY: preinstall |
14 preinstall: .emacs .emacs-my .emacs-pre .emacs-post |
14 preinstall: .emacs .emacs-my .emacs-pre .emacs-post |
15 for file in .emacs-pre .emacs-post; do \ |
15 for file in .emacs-pre .emacs-post; do \ |
16 if [ ! -f $(HOME)/$$file ]; then cp $$file $(HOME)/$$file; fi; \ |
16 if [ ! -f $(HOME)/$$file ]; then cp $$file $(HOME)/$$file; fi; \ |
17 done |
17 done |
18 cp .emacs $(HOME)/.emacs |
18 cp .emacs $(HOME)/.emacs |
19 cp .emacs-my $(HOME)/.emacs-my |
19 cp .emacs-my $(HOME)/.emacs-my |
20 |
20 |
21 .PHONY: install-all |
21 .PHONY: install-all |
22 install-all: preinstall-all update-dot-emacs-pre update-dot-emacs-post |
22 install-all: preinstall-all update-dot-emacs-pre |
23 |
23 |
24 .PHONY: preinstall-all |
24 .PHONY: preinstall-all |
25 preinstall-all: .emacs .emacs-my .emacs-pre .emacs-post |
25 preinstall-all: .emacs .emacs-my .emacs-pre .emacs-post |
26 for file in $^; do \ |
26 for file in $^; do \ |
27 cp $$file $(HOME)/$$file; \ |
27 cp $$file $(HOME)/$$file; \ |
32 printf ";; DO NOT EDIT! This file automatically generated.\n\n" >$(HOME)/.emacs-pre-auto |
32 printf ";; DO NOT EDIT! This file automatically generated.\n\n" >$(HOME)/.emacs-pre-auto |
33 for file in `cd template-pre; ls *.el`; do \ |
33 for file in `cd template-pre; ls *.el`; do \ |
34 cat template-pre/$$file >>$(HOME)/.emacs-pre-auto; \ |
34 cat template-pre/$$file >>$(HOME)/.emacs-pre-auto; \ |
35 done |
35 done |
36 |
36 |
37 .PHONY: update-dot-emacs-post |
|
38 update-dot-emacs-post: |
|
39 printf ";; DO NOT EDIT! This file automatically generated.\n\n" >$(HOME)/.emacs-post-auto |
|
40 for file in `cd template-post; ls *.el`; do \ |
|
41 cat template-post/$$file >>$(HOME)/.emacs-post-auto; \ |
|
42 done |
|
43 |
|
44 .PHONY: tar |
37 .PHONY: tar |
45 tar: |
38 tar: |
46 tar cf dot-emacs.tar .emacs .emacs-my |
39 tar cf dot-emacs.tar .emacs .emacs-my |
47 |
40 |
48 .PHONY: distclean |
41 .PHONY: distclean |