equal
deleted
inserted
replaced
20 host_os = linux |
20 host_os = linux |
21 ifneq '' '$(COMSPEC)' |
21 ifneq '' '$(COMSPEC)' |
22 host_os = windows |
22 host_os = windows |
23 endif |
23 endif |
24 |
24 |
|
25 ################################################################ |
|
26 # Project dirs/files. |
|
27 |
25 OVERRIDDEN_ITEMS = \ |
28 OVERRIDDEN_ITEMS = \ |
26 .inputrc .minttyrc .Xdefaults .xinitrc .xserverrc .screenrc .dircolors \ |
29 .inputrc .minttyrc .Xdefaults .xinitrc .xserverrc .screenrc .dircolors \ |
27 .bashrc .bash_completion .zshrc .vimrc .ssh \ |
30 .bashrc .bash_completion .zshrc .vimrc .ssh \ |
28 .mailsign .muttrc .tidy \ |
31 .mailsign .muttrc .tidy \ |
29 .dictrc \ |
32 .dictrc \ |
30 .hgrc .hgignore .bazaar .gitconfig .gitignore .cvs \ |
33 .hgrc .hgignore .bazaar .gitconfig .gitignore .cvs \ |
31 .gnupg |
34 .gnupg |
32 MANUALINSTALL_ITEMS = .mc |
35 MANUALINSTALL_ITEMS = .mc |
33 IFNONEXIST_ITEMS = .wgetrc .subversion |
36 IFNONEXIST_ITEMS = .wgetrc .subversion |
|
37 |
|
38 ################################################################ |
|
39 # Install/uninstall targets. |
34 |
40 |
35 .PHONY: install |
41 .PHONY: install |
36 install: |
42 install: |
37 for item in $(OVERRIDDEN_ITEMS); do \ |
43 for item in $(OVERRIDDEN_ITEMS); do \ |
38 if [ -f $$item ]; then \ |
44 if [ -f $$item ]; then \ |
89 fi; \ |
95 fi; \ |
90 done |
96 done |
91 rm -f $(HOME)/.mc/bashrc $(HOME)/.mc/ini $(HOME)/.mc/bindings |
97 rm -f $(HOME)/.mc/bashrc $(HOME)/.mc/ini $(HOME)/.mc/bindings |
92 rmdir $(HOME)/.mc || : |
98 rmdir $(HOME)/.mc || : |
93 |
99 |
|
100 ################################################################ |
|
101 # Clean targets. |
|
102 |
94 .PHONY: clean |
103 .PHONY: clean |
95 clean: |
104 clean: |
96 |
105 |
97 .PHONY: distclean |
106 .PHONY: distclean |
98 distclean: clean |
107 distclean: clean |