equal
deleted
inserted
replaced
15 .DELETE_ON_ERROR: |
15 .DELETE_ON_ERROR: |
16 # Default target. |
16 # Default target. |
17 .DEFAULT_GOAL = help |
17 .DEFAULT_GOAL = help |
18 |
18 |
19 ################################################################ |
19 ################################################################ |
|
20 # Config. |
|
21 |
|
22 CFG_FILE := Makefile.cfg |
|
23 include $(CFG_FILE) |
|
24 |
|
25 # Override defaults. |
|
26 CFG_LOCAL_FILE := Makefile.cfg.override |
|
27 -include $(CFG_LOCAL_FILE) |
|
28 |
|
29 ################################################################ |
20 # Platform definition. |
30 # Platform definition. |
21 |
31 |
22 ifeq '' '$(HOME)' |
32 ifeq '' '$(HOME)' |
23 $(error HOME env var not set!) |
33 $(error HOME env var not set!) |
24 endif |
34 endif |
49 ################################################################ |
59 ################################################################ |
50 # Project dirs/files. |
60 # Project dirs/files. |
51 |
61 |
52 OVERRIDDEN_ITEMS := \ |
62 OVERRIDDEN_ITEMS := \ |
53 .fvwm .xxkbrc .xmodmaprc .stalonetrayrc \ |
63 .fvwm .xxkbrc .xmodmaprc .stalonetrayrc \ |
54 .inputrc .minttyrc .Xdefaults .xinitrc .xserverrc .screenrc \ |
64 .inputrc .Xdefaults .xinitrc .xserverrc .screenrc \ |
55 .dircolors .colordiffrc \ |
65 .dircolors .colordiffrc \ |
56 .env .bashrc .bash_completion .bash_completion.d .zshrc .vimrc .ssh \ |
66 .env .bashrc .bash_completion .bash_completion.d .zshrc .vimrc .ssh \ |
57 .pylintrc .pystartup .tclshrc .npmrc .guile \ |
67 .pylintrc .pystartup .tclshrc .npmrc .guile \ |
58 .gradle/init.d/springColorLogging.gradle \ |
68 .gradle/init.d/springColorLogging.gradle \ |
59 .sqshrc \ |
69 .sqshrc \ |
169 file --compile -m .magic; \ |
179 file --compile -m .magic; \ |
170 fi |
180 fi |
171 endif |
181 endif |
172 mkdir -p $(HOME)/.local/share/applications/ |
182 mkdir -p $(HOME)/.local/share/applications/ |
173 $(INSTALL_DATA) .local/share/applications/mimeapps.list $(HOME)/.local/share/applications/ |
183 $(INSTALL_DATA) .local/share/applications/mimeapps.list $(HOME)/.local/share/applications/ |
|
184 sed -e 's=@CFG_FONT_SIZE@=$(CFG_FONT_SIZE)=' <.minttyrc >$(HOME)/.minttyrc |
174 |
185 |
175 .PHONY: uninstall |
186 .PHONY: uninstall |
176 uninstall: |
187 uninstall: |
177 for item in $(OVERRIDDEN_ITEMS); do \ |
188 for item in $(OVERRIDDEN_ITEMS); do \ |
178 if [ -f $$item ]; then \ |
189 if [ -f $$item ]; then \ |