aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2014-01-02 04:53:04 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-01-13 08:06:23 -0500
commit198430b56d4ab49d77381ef7cd3daf418a2c00c0 (patch)
treea5b22000f1e7ee2f9249ba950b72d664c517bb7a /tools/lib
parentf7c64474242701eb24f6fe96f8df0389a2b800f7 (diff)
tools lib traceevent: Replace tabs with spaces for all non-commands statements
The tabbed indentation in non-commands statements could be sometimes considered as follow up for the rule command in the Makefile. This error is hard to find, so as a precaution replacing tabs with spaces for all non-commands statements. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://marc.info/?t=136484403900003&r=1&w=2 Link: http://lkml.kernel.org/r/20140102095304.GA1196@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/traceevent/Makefile54
1 files changed, 27 insertions, 27 deletions
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
index ca4ab78425d1..76fe0aeb874e 100644
--- a/tools/lib/traceevent/Makefile
+++ b/tools/lib/traceevent/Makefile
@@ -86,8 +86,8 @@ ifeq ($(BUILD_SRC),)
86ifneq ($(OUTPUT),) 86ifneq ($(OUTPUT),)
87 87
88define build_output 88define build_output
89 $(if $(VERBOSE:1=),@)+$(MAKE) -C $(OUTPUT) \ 89 $(if $(VERBOSE:1=),@)+$(MAKE) -C $(OUTPUT) \
90 BUILD_SRC=$(CURDIR)/ -f $(CURDIR)/Makefile $1 90 BUILD_SRC=$(CURDIR)/ -f $(CURDIR)/Makefile $1
91endef 91endef
92 92
93all: sub-make 93all: sub-make
@@ -221,23 +221,23 @@ $(PLUGINS): %.so: %.o
221 $(QUIET_LINK)$(CC) $(CFLAGS) -shared -nostartfiles -o $@ $< 221 $(QUIET_LINK)$(CC) $(CFLAGS) -shared -nostartfiles -o $@ $<
222 222
223define make_version.h 223define make_version.h
224 (echo '/* This file is automatically generated. Do not modify. */'; \ 224 (echo '/* This file is automatically generated. Do not modify. */'; \
225 echo \#define VERSION_CODE $(shell \ 225 echo \#define VERSION_CODE $(shell \
226 expr $(VERSION) \* 256 + $(PATCHLEVEL)); \ 226 expr $(VERSION) \* 256 + $(PATCHLEVEL)); \
227 echo '#define EXTRAVERSION ' $(EXTRAVERSION); \ 227 echo '#define EXTRAVERSION ' $(EXTRAVERSION); \
228 echo '#define VERSION_STRING "'$(VERSION).$(PATCHLEVEL).$(EXTRAVERSION)'"'; \ 228 echo '#define VERSION_STRING "'$(VERSION).$(PATCHLEVEL).$(EXTRAVERSION)'"'; \
229 echo '#define FILE_VERSION '$(FILE_VERSION); \ 229 echo '#define FILE_VERSION '$(FILE_VERSION); \
230 ) > $1 230 ) > $1
231endef 231endef
232 232
233define update_version.h 233define update_version.h
234 ($(call make_version.h, $@.tmp); \ 234 ($(call make_version.h, $@.tmp); \
235 if [ -r $@ ] && cmp -s $@ $@.tmp; then \ 235 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
236 rm -f $@.tmp; \ 236 rm -f $@.tmp; \
237 else \ 237 else \
238 echo ' UPDATE $@'; \ 238 echo ' UPDATE $@'; \
239 mv -f $@.tmp $@; \ 239 mv -f $@.tmp $@; \
240 fi); 240 fi);
241endef 241endef
242 242
243ep_version.h: force 243ep_version.h: force
@@ -246,13 +246,13 @@ ep_version.h: force
246VERSION_FILES = ep_version.h 246VERSION_FILES = ep_version.h
247 247
248define update_dir 248define update_dir
249 (echo $1 > $@.tmp; \ 249 (echo $1 > $@.tmp; \
250 if [ -r $@ ] && cmp -s $@ $@.tmp; then \ 250 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
251 rm -f $@.tmp; \ 251 rm -f $@.tmp; \
252 else \ 252 else \
253 echo ' UPDATE $@'; \ 253 echo ' UPDATE $@'; \
254 mv -f $@.tmp $@; \ 254 mv -f $@.tmp $@; \
255 fi); 255 fi);
256endef 256endef
257 257
258## make deps 258## make deps
@@ -262,10 +262,10 @@ all_deps := $(all_objs:%.o=.%.d)
262 262
263# let .d file also depends on the source and header files 263# let .d file also depends on the source and header files
264define check_deps 264define check_deps
265 @set -e; $(RM) $@; \ 265 @set -e; $(RM) $@; \
266 $(CC) -MM $(CFLAGS) $< > $@.$$$$; \ 266 $(CC) -MM $(CFLAGS) $< > $@.$$$$; \
267 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ 267 sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
268 $(RM) $@.$$$$ 268 $(RM) $@.$$$$
269endef 269endef
270 270
271$(all_deps): .%.d: $(src)/%.c 271$(all_deps): .%.d: $(src)/%.c