author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 29 Jun 2014 15:37:14 +0300 | |
changeset 700 | 45c5d320d322 |
parent 692 | 94abd8fa5462 |
child 715 | eb1bfc8a4d48 |
permissions | -rw-r--r-- |
602 | 1 |
|
2 |
################################################################ |
|
3 |
# Standard GNU Makefile settings. |
|
4 |
||
596
f6be61efe78f
Add 'dquilt' alias for Debian package development.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
592
diff
changeset
|
5 |
SHELL = /bin/sh -eu |
165
517623c39dac
Add work-around for PATH. Under Windows find.exe going in collision with
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
147
diff
changeset
|
6 |
export PATH := /bin:/usr/bin:${PATH} |
0 | 7 |
|
166
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
8 |
# Disable built in pattern rules. |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
9 |
MAKEFLAGS += -r |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
10 |
# Disable built in variables. |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
11 |
MAKEFLAGS += -R |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
12 |
# Disable built in suffix rules. |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
13 |
.SUFFIXES: |
602 | 14 |
# Delete target file if command fails. |
15 |
.DELETE_ON_ERROR: |
|
166
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
16 |
# Default target. |
217
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
17 |
.DEFAULT_GOAL = help |
166
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
18 |
|
249 | 19 |
################################################################ |
20 |
# Platform definition. |
|
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
21 |
|
0 | 22 |
ifeq '' '$(HOME)' |
12
52322e5cc6bb
Proper determine Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2
diff
changeset
|
23 |
$(error HOME env var not set!) |
0 | 24 |
endif |
25 |
||
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
26 |
host_os = linux |
12
52322e5cc6bb
Proper determine Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2
diff
changeset
|
27 |
ifneq '' '$(COMSPEC)' |
249 | 28 |
host_os = cygwin |
29 |
endif |
|
30 |
||
31 |
################################################################ |
|
32 |
# Build tool definition/switches. |
|
33 |
||
34 |
RST2HTML = rst2html |
|
35 |
ifeq '$(host_os)' 'cygwin' |
|
36 |
RST2HTML = rst2html.py |
|
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
37 |
endif |
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
38 |
|
218 | 39 |
################################################################ |
40 |
# Project dirs/files. |
|
41 |
||
427
59627b533219
Merge ".fvwm" project into "skel" project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
329
diff
changeset
|
42 |
OVERRIDDEN_ITEMS := \ |
683
d95d6ab31a4a
Fix Fvwm maximize window problem with stalonetray.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
655
diff
changeset
|
43 |
.fvwm .xxkbrc .xmodmaprc .stalonetrayrc \ |
208
ba6619e43b22
Add '.dircolors' but don't enable it.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
201
diff
changeset
|
44 |
.inputrc .minttyrc .Xdefaults .xinitrc .xserverrc .screenrc .dircolors \ |
653
a5566b182446
Use .env file as common env var settings for Bash and Zsh.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
649
diff
changeset
|
45 |
.env .bashrc .bash_completion .bash_completion.d .zshrc .vimrc .ssh \ |
700
45c5d320d322
http://stackoverflow.com/questions/24454076/how-to-force-gradle-to-use-share-m2-repository-with-maven-system-wide/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
692
diff
changeset
|
46 |
.pylintrc .pystartup .tclshrc .npmrc .guile \ |
45c5d320d322
http://stackoverflow.com/questions/24454076/how-to-force-gradle-to-use-share-m2-repository-with-maven-system-wide/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
692
diff
changeset
|
47 |
.gradle \ |
629
e7af6e868864
Set isql like prompt and go on semicolon.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
616
diff
changeset
|
48 |
.sqshrc \ |
234
420c06da8fd1
Fix mail signature file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
229
diff
changeset
|
49 |
.signature .muttrc .tidy \ |
188 | 50 |
.dictrc \ |
596
f6be61efe78f
Add 'dquilt' alias for Debian package development.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
592
diff
changeset
|
51 |
.hgrc .hgignore .hgstyle .bazaar .gitconfig .gitignore .cvsrc .quiltrc .quiltrc-dpkg \ |
293 | 52 |
.gnupg \ |
616
e3dd5c39cceb
Colorizer for java logs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
611
diff
changeset
|
53 |
.ackrc .grc \ |
293 | 54 |
.glhackrc |
87
63b568f99e3c
Install manually Midnight Commander ini files as for Cygwin and Debian
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
55 |
MANUALINSTALL_ITEMS = .mc |
117
02b91508db83
Add svn user config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
116
diff
changeset
|
56 |
IFNONEXIST_ITEMS = .wgetrc .subversion |
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
57 |
|
249 | 58 |
RST_FILES = $(wildcard *.rst) |
59 |
HTML_FILES = $(RST_FILES:.rst=.html) |
|
60 |
||
61 |
################################################################ |
|
62 |
# Build targets. |
|
63 |
||
64 |
.PHONY: all |
|
65 |
all: |
|
66 |
||
218 | 67 |
################################################################ |
68 |
# Install/uninstall targets. |
|
69 |
||
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
70 |
.PHONY: install |
0 | 71 |
install: |
76
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
72 |
for item in $(OVERRIDDEN_ITEMS); do \ |
21 | 73 |
if [ -f $$item ]; then \ |
74 |
install -m 640 $$item $(HOME)/$$item; \ |
|
75 |
fi; \ |
|
76 |
if [ -d $$item ]; then \ |
|
77 |
for file in `find $$item`; do \ |
|
78 |
if [ -d $$file ]; then \ |
|
77
46f5f10ec084
Don't check for existence of source file/dir as find return only existing ones.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
76
diff
changeset
|
79 |
mkdir -p $(HOME)/$$file; \ |
46f5f10ec084
Don't check for existence of source file/dir as find return only existing ones.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
76
diff
changeset
|
80 |
continue; \ |
21 | 81 |
fi; \ |
77
46f5f10ec084
Don't check for existence of source file/dir as find return only existing ones.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
76
diff
changeset
|
82 |
install -m 640 $$file $(HOME)/$$file; \ |
21 | 83 |
done; \ |
84 |
fi; \ |
|
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
85 |
done |
592
b472ec1324d1
Fix: gpg: failed to create temporary file `/home/user/.gnupg/.#lk0x23b70e0.desktop.22780': Permission denied
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
543
diff
changeset
|
86 |
chmod 700 ~/.gnupg/ |
478
2913a8a1a474
Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
87 |
chmod a+x ~/.fvwm/FvwmKbdd.pl |
692
94abd8fa5462
Fix errors when some utilities not present.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
683
diff
changeset
|
88 |
command -v fvwm || exit 0; \ |
506
0ab510cb567d
Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
89 |
for f in /etc/xdg/menus/*.menu; do \ |
518
3dd43161fc0e
Pass full path to menu file. Also pass Fvwm menu entry name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
506
diff
changeset
|
90 |
[ -f "$$f" ] || continue; \ |
3dd43161fc0e
Pass full path to menu file. Also pass Fvwm menu entry name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
506
diff
changeset
|
91 |
fname=$${f%.menu}; \ |
3dd43161fc0e
Pass full path to menu file. Also pass Fvwm menu entry name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
506
diff
changeset
|
92 |
fname=$${fname##*/}; \ |
3dd43161fc0e
Pass full path to menu file. Also pass Fvwm menu entry name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
506
diff
changeset
|
93 |
python .fvwm/xdg2fvwm.py Menu-$$fname $$f >~/.fvwm/$$fname.hook; \ |
3dd43161fc0e
Pass full path to menu file. Also pass Fvwm menu entry name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
506
diff
changeset
|
94 |
echo "Read $$[HOME]/.fvwm/$$fname.hook" >>~/.fvwm/config; \ |
3dd43161fc0e
Pass full path to menu file. Also pass Fvwm menu entry name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
506
diff
changeset
|
95 |
echo "AddToMenu MenuMyRoot $$fname Popup Menu-$$fname" >>~/.fvwm/config; \ |
506
0ab510cb567d
Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
96 |
done |
486
8e5f69997c86
Create .screenshot directory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
480
diff
changeset
|
97 |
mkdir -p ~/.screenshot |
76
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
98 |
for item in $(IFNONEXIST_ITEMS); do \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
99 |
if [ -f $$item -a ! -f $(HOME)/$$item ]; then \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
100 |
install -m 640 $$item $(HOME)/$$item; \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
101 |
fi; \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
102 |
if [ -d $$item ]; then \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
103 |
for file in `find $$item`; do \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
104 |
if [ -d $$file ]; then \ |
77
46f5f10ec084
Don't check for existence of source file/dir as find return only existing ones.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
76
diff
changeset
|
105 |
mkdir -p $(HOME)/$$file; \ |
46f5f10ec084
Don't check for existence of source file/dir as find return only existing ones.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
76
diff
changeset
|
106 |
continue; \ |
76
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
107 |
fi; \ |
77
46f5f10ec084
Don't check for existence of source file/dir as find return only existing ones.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
76
diff
changeset
|
108 |
if [ ! -f $(HOME)/$$file ]; then \ |
76
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
109 |
install -m 640 $$file $(HOME)/$$file; \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
110 |
fi; \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
111 |
done; \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
112 |
fi; \ |
85dc8b07017a
Allow installation of file which can be modified by user so you do not lose
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
75
diff
changeset
|
113 |
done |
287
fa17ae49bfff
Add execute permission to '.xinitrc' to use Bash script language instead of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
286
diff
changeset
|
114 |
chmod a+x ~/.xinitrc ~/.xserverrc |
278
b6adff7cbcb1
Fix "ln: creating symbolic link `/home/user/.xsession': File exists".
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
275
diff
changeset
|
115 |
rm -f ~/.xsession |
275
2f79af90c708
ln -s ~/.xinitrc ~/.xsession
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
116 |
ln -s ~/.xinitrc ~/.xsession |
449
63fe7a1ebae4
Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
117 |
rm -f ~/.bash_profile |
63fe7a1ebae4
Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
118 |
ln -s ~/.bashrc ~/.bash_profile |
692
94abd8fa5462
Fix errors when some utilities not present.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
683
diff
changeset
|
119 |
command -v mc || exit 0; \ |
324
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
120 |
v=`mc --version | sed 's|.*\([0-9]\+\.[0-9]\+\.[0-9]\+\)$$|\1|;q'`; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
121 |
vmajor=$${v%%.*}; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
122 |
vminor=$${v#*.}; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
123 |
vminor=$${vminor%.*}; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
124 |
if [ $$vmajor -gt 4 -o '(' $$vmajor -eq 4 -a $$vminor -ge 8 ')' ]; then \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
125 |
mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \ |
611
54de7fabecd7
Setting umask before mkdir broke directories permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
602
diff
changeset
|
126 |
umask 0117; \ |
324
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
127 |
install -m 640 .local/share/mc/bashrc $(HOME)/.local/share/mc/; \ |
443
fa394c932c09
Fix path to 'mc.ext'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
433
diff
changeset
|
128 |
cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext; \ |
543
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
129 |
{ \ |
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
130 |
echo 'default/*'; \ |
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
131 |
echo ' Open=file %f'; \ |
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
132 |
echo ' Edit=[ `du -m %f | { read size rest; echo $$size; }` -le 4 ] && e %f || echo Too large file for Emacs...'; \ |
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
133 |
} >>$(HOME)/.config/mc/mc.ext; \ |
324
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
134 |
else \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
135 |
mkdir -p $(HOME)/.mc; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
136 |
install -m 640 .local/share/mc/bashrc $(HOME)/.mc; \ |
329
5c0a22da5ef3
Remove Cygwin version of mc.ext as they is exactly same.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
328
diff
changeset
|
137 |
install -m 640 .config/mc/mc.ext $(HOME)/.mc/bindings; \ |
324
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
138 |
fi |
295 | 139 |
if command -v file 1>/dev/null; then \ |
140 |
install -m 640 .magic $(HOME); \ |
|
141 |
cd $(HOME); \ |
|
142 |
file --compile -m .magic; \ |
|
143 |
fi |
|
0 | 144 |
|
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
145 |
.PHONY: uninstall |
0 | 146 |
uninstall: |
78 | 147 |
for item in $(OVERRIDDEN_ITEMS); do \ |
148 |
if [ -f $$item ]; then \ |
|
149 |
[ -f $(HOME)/$$file ] && rm -f $(HOME)/$$item; \ |
|
150 |
fi; \ |
|
151 |
if [ -d $$item ]; then \ |
|
152 |
for file in `find $$item -depth`; do \ |
|
153 |
if [ -d $$file ]; then \ |
|
154 |
rmdir $(HOME)/$$file || :; \ |
|
155 |
continue; \ |
|
156 |
fi; \ |
|
157 |
[ -f $(HOME)/$$file ] && rm $(HOME)/$$file; \ |
|
158 |
done; \ |
|
159 |
fi; \ |
|
160 |
done |
|
87
63b568f99e3c
Install manually Midnight Commander ini files as for Cygwin and Debian
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
161 |
rm -f $(HOME)/.mc/bashrc $(HOME)/.mc/ini $(HOME)/.mc/bindings |
63b568f99e3c
Install manually Midnight Commander ini files as for Cygwin and Debian
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
162 |
rmdir $(HOME)/.mc || : |
0 | 163 |
|
218 | 164 |
################################################################ |
249 | 165 |
# Docs targets. |
166 |
||
167 |
.PHONY: html |
|
168 |
html: $(HTML_FILES) |
|
169 |
||
170 |
# --stylesheet=rst.css |
|
171 |
$(HTML_FILES): %.html: %.rst |
|
172 |
$(RST2HTML) $*.rst $@ |
|
173 |
||
174 |
################################################################ |
|
218 | 175 |
# Clean targets. |
176 |
||
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
177 |
.PHONY: clean |
0 | 178 |
clean: |
249 | 179 |
rm -f $(HTML_FILES) |
0 | 180 |
|
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
181 |
.PHONY: distclean |
0 | 182 |
distclean: clean |
217
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
183 |
|
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
184 |
################################################################ |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
185 |
# Helper target. |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
186 |
|
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
187 |
.PHONY: help |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
188 |
help: |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
189 |
@echo |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
190 |
@echo Supported targets: |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
191 |
@sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*= \1=;p;}' $(MAKEFILE_LIST) |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
192 |