author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 26 Nov 2012 13:18:06 +0200 | |
changeset 601 | 624d147ef0c1 |
parent 596 | f6be61efe78f |
child 602 | a930cfd5a0e6 |
permissions | -rw-r--r-- |
596
f6be61efe78f
Add 'dquilt' alias for Debian package development.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
592
diff
changeset
|
1 |
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
|
2 |
export PATH := /bin:/usr/bin:${PATH} |
0 | 3 |
|
166
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
4 |
# Disable built in pattern rules. |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
5 |
MAKEFLAGS += -r |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
6 |
# Disable built in variables. |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
7 |
MAKEFLAGS += -R |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
8 |
# Disable built in suffix rules. |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
9 |
.SUFFIXES: |
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
10 |
# Default target. |
217
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
11 |
.DEFAULT_GOAL = help |
166
27fc63b27dad
Add default Makefile settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
165
diff
changeset
|
12 |
|
249 | 13 |
################################################################ |
14 |
# Platform definition. |
|
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
15 |
|
0 | 16 |
ifeq '' '$(HOME)' |
12
52322e5cc6bb
Proper determine Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2
diff
changeset
|
17 |
$(error HOME env var not set!) |
0 | 18 |
endif |
19 |
||
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
20 |
host_os = linux |
12
52322e5cc6bb
Proper determine Windows.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2
diff
changeset
|
21 |
ifneq '' '$(COMSPEC)' |
249 | 22 |
host_os = cygwin |
23 |
endif |
|
24 |
||
25 |
################################################################ |
|
26 |
# Build tool definition/switches. |
|
27 |
||
28 |
RST2HTML = rst2html |
|
29 |
ifeq '$(host_os)' 'cygwin' |
|
30 |
RST2HTML = rst2html.py |
|
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
31 |
endif |
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
32 |
|
218 | 33 |
################################################################ |
34 |
# Project dirs/files. |
|
35 |
||
427
59627b533219
Merge ".fvwm" project into "skel" project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
329
diff
changeset
|
36 |
OVERRIDDEN_ITEMS := \ |
458
1a122fdb2003
Disable anti-aliasing at all.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
449
diff
changeset
|
37 |
.fvwm .xxkbrc .xmodmaprc .fonts.conf \ |
208
ba6619e43b22
Add '.dircolors' but don't enable it.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
201
diff
changeset
|
38 |
.inputrc .minttyrc .Xdefaults .xinitrc .xserverrc .screenrc .dircolors \ |
480
4d0ff0dfdeb9
Rename '.bash_path' to '.bashenv'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
478
diff
changeset
|
39 |
.bashrc .bashenv .bash_completion .zshrc .vimrc .ssh \ |
466
4c5042015cd7
Add Readline support for Guile.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
458
diff
changeset
|
40 |
.pylintrc .pystartup \ |
4c5042015cd7
Add Readline support for Guile.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
458
diff
changeset
|
41 |
.guile \ |
234
420c06da8fd1
Fix mail signature file name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
229
diff
changeset
|
42 |
.signature .muttrc .tidy \ |
188 | 43 |
.dictrc \ |
596
f6be61efe78f
Add 'dquilt' alias for Debian package development.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
592
diff
changeset
|
44 |
.hgrc .hgignore .hgstyle .bazaar .gitconfig .gitignore .cvsrc .quiltrc .quiltrc-dpkg \ |
293 | 45 |
.gnupg \ |
601
624d147ef0c1
Set colour schema for ack.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
596
diff
changeset
|
46 |
.ackrc \ |
293 | 47 |
.glhackrc |
87
63b568f99e3c
Install manually Midnight Commander ini files as for Cygwin and Debian
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
48 |
MANUALINSTALL_ITEMS = .mc |
117
02b91508db83
Add svn user config.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
116
diff
changeset
|
49 |
IFNONEXIST_ITEMS = .wgetrc .subversion |
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
50 |
|
249 | 51 |
RST_FILES = $(wildcard *.rst) |
52 |
HTML_FILES = $(RST_FILES:.rst=.html) |
|
53 |
||
54 |
################################################################ |
|
55 |
# Build targets. |
|
56 |
||
57 |
.PHONY: all |
|
58 |
all: |
|
59 |
||
218 | 60 |
################################################################ |
61 |
# Install/uninstall targets. |
|
62 |
||
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
63 |
.PHONY: install |
0 | 64 |
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
|
65 |
for item in $(OVERRIDDEN_ITEMS); do \ |
21 | 66 |
if [ -f $$item ]; then \ |
67 |
install -m 640 $$item $(HOME)/$$item; \ |
|
68 |
fi; \ |
|
69 |
if [ -d $$item ]; then \ |
|
70 |
for file in `find $$item`; do \ |
|
71 |
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
|
72 |
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
|
73 |
continue; \ |
21 | 74 |
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
|
75 |
install -m 640 $$file $(HOME)/$$file; \ |
21 | 76 |
done; \ |
77 |
fi; \ |
|
2
48e601bfbca6
Split files depend of OS. New install algorithm.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
0
diff
changeset
|
78 |
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
|
79 |
chmod 700 ~/.gnupg/ |
478
2913a8a1a474
Add Fvwm Perl module to send signals to kbdd.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
80 |
chmod a+x ~/.fvwm/FvwmKbdd.pl |
506
0ab510cb567d
Add xdg to Fvwm menus converter.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
81 |
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
|
82 |
[ -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
|
83 |
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
|
84 |
fname=$${fname##*/}; \ |
3dd43161fc0e
Pass full path to menu file. Also pass Fvwm menu entry name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
506
diff
changeset
|
85 |
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
|
86 |
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
|
87 |
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
|
88 |
done |
486
8e5f69997c86
Create .screenshot directory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
480
diff
changeset
|
89 |
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
|
90 |
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
|
91 |
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
|
92 |
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
|
93 |
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
|
94 |
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
|
95 |
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
|
96 |
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
|
97 |
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
|
98 |
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
|
99 |
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
|
100 |
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
|
101 |
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
|
102 |
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
|
103 |
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
|
104 |
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
|
105 |
done |
287
fa17ae49bfff
Add execute permission to '.xinitrc' to use Bash script language instead of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
286
diff
changeset
|
106 |
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
|
107 |
rm -f ~/.xsession |
275
2f79af90c708
ln -s ~/.xinitrc ~/.xsession
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
249
diff
changeset
|
108 |
ln -s ~/.xinitrc ~/.xsession |
449
63fe7a1ebae4
Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
109 |
rm -f ~/.bash_profile |
63fe7a1ebae4
Load custom settings (user editable).
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
443
diff
changeset
|
110 |
ln -s ~/.bashrc ~/.bash_profile |
324
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
111 |
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
|
112 |
vmajor=$${v%%.*}; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
113 |
vminor=$${v#*.}; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
114 |
vminor=$${vminor%.*}; \ |
328
3e80c4af5ab6
Merge my config for mc.ext with system wide as only ~/.config/mc/mc.ext
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
324
diff
changeset
|
115 |
umask 0117; \ |
324
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
116 |
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
|
117 |
mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
118 |
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
|
119 |
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
|
120 |
{ \ |
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
121 |
echo 'default/*'; \ |
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
122 |
echo ' Open=file %f'; \ |
77f7344600cb
Edit file with Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
518
diff
changeset
|
123 |
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
|
124 |
} >>$(HOME)/.config/mc/mc.ext; \ |
324
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
125 |
else \ |
e30f2ac488aa
Port MC config to 4.8.x version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
312
diff
changeset
|
126 |
mkdir -p $(HOME)/.mc; \ |
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)/.mc; \ |
329
5c0a22da5ef3
Remove Cygwin version of mc.ext as they is exactly same.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
328
diff
changeset
|
128 |
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
|
129 |
fi |
295 | 130 |
if command -v file 1>/dev/null; then \ |
131 |
install -m 640 .magic $(HOME); \ |
|
132 |
cd $(HOME); \ |
|
133 |
file --compile -m .magic; \ |
|
134 |
fi |
|
0 | 135 |
|
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
136 |
.PHONY: uninstall |
0 | 137 |
uninstall: |
78 | 138 |
for item in $(OVERRIDDEN_ITEMS); do \ |
139 |
if [ -f $$item ]; then \ |
|
140 |
[ -f $(HOME)/$$file ] && rm -f $(HOME)/$$item; \ |
|
141 |
fi; \ |
|
142 |
if [ -d $$item ]; then \ |
|
143 |
for file in `find $$item -depth`; do \ |
|
144 |
if [ -d $$file ]; then \ |
|
145 |
rmdir $(HOME)/$$file || :; \ |
|
146 |
continue; \ |
|
147 |
fi; \ |
|
148 |
[ -f $(HOME)/$$file ] && rm $(HOME)/$$file; \ |
|
149 |
done; \ |
|
150 |
fi; \ |
|
151 |
done |
|
87
63b568f99e3c
Install manually Midnight Commander ini files as for Cygwin and Debian
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
79
diff
changeset
|
152 |
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
|
153 |
rmdir $(HOME)/.mc || : |
0 | 154 |
|
218 | 155 |
################################################################ |
249 | 156 |
# Docs targets. |
157 |
||
158 |
.PHONY: html |
|
159 |
html: $(HTML_FILES) |
|
160 |
||
161 |
# --stylesheet=rst.css |
|
162 |
$(HTML_FILES): %.html: %.rst |
|
163 |
$(RST2HTML) $*.rst $@ |
|
164 |
||
165 |
################################################################ |
|
218 | 166 |
# Clean targets. |
167 |
||
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
168 |
.PHONY: clean |
0 | 169 |
clean: |
249 | 170 |
rm -f $(HTML_FILES) |
0 | 171 |
|
13
9e590e7ef108
Adds .PHONY exactly before corresponding target.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
12
diff
changeset
|
172 |
.PHONY: distclean |
0 | 173 |
distclean: clean |
217
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
174 |
|
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
175 |
################################################################ |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
176 |
# Helper target. |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
177 |
|
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
178 |
.PHONY: help |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
179 |
help: |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
180 |
@echo |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
181 |
@echo Supported targets: |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
182 |
@sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*= \1=;p;}' $(MAKEFILE_LIST) |
fdcf941346bb
Print supported targets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
216
diff
changeset
|
183 |