projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722a498
)
tools lib traceevent: Add do_install_mkdir Makefile function
author
Jiri Olsa
<jolsa@kernel.org>
Sun, 31 Jul 2016 14:49:33 +0000
(16:49 +0200)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Mon, 24 Oct 2016 14:07:31 +0000
(11:07 -0300)
Decompose the do_install function to ease up
the following patch a little.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link:
http://lkml.kernel.org/n/tip-zzs19yx8seyors532vuer37w@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/Makefile
patch
|
blob
|
blame
|
history
diff --git
a/tools/lib/traceevent/Makefile
b/tools/lib/traceevent/Makefile
index 8e44bea646eee0e2bb1c9a744507493d9102e972..deeae5201ec935c371420369f86c55be99078969 100644
(file)
--- a/
tools/lib/traceevent/Makefile
+++ b/
tools/lib/traceevent/Makefile
@@
-236,10
+236,14
@@
TAGS: force
find . -name '*.[ch]' | xargs etags \
--regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/'
+define do_install_mkdir
+ if [ ! -d '$(DESTDIR_SQ)$1' ]; then \
+ $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$1'; \
+ fi
+endef
+
define do_install
- if [ ! -d '$(DESTDIR_SQ)$2' ]; then \
- $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$2'; \
- fi; \
+ $(call do_install_mkdir,$2); \
$(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
endef