summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson2013-03-12 03:57:28 +0100
committerAnthony Liguori2013-03-15 17:36:49 +0100
commitb1999e87b4d42305419329cae459e1b43f706d96 (patch)
treec7cd8c0431a64f5a41c51ba81548cdf423a39036 /Makefile
parentMerge remote-tracking branch 'stefanha/block' into staging (diff)
downloadqemu-b1999e87b4d42305419329cae459e1b43f706d96.tar.gz
qemu-b1999e87b4d42305419329cae459e1b43f706d96.tar.xz
qemu-b1999e87b4d42305419329cae459e1b43f706d96.zip
Fix TAGS creation
Currently the Makefile creates TAGS for emacs with the command: find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags That works only if xargs ends up invoking etags just once. If xargs runs etags several times, as it will if there are enough files, then the later invocations will overwrite the output from the earlier invocations. This patch uses the etags --append option to fix the bug. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Message-id: 1363057048-21534-1-git-send-email-david@gibson.dropbear.id.au Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 12c7662667..69151787ff 100644
--- a/Makefile
+++ b/Makefile
@@ -334,7 +334,8 @@ test speed: all
.PHONY: TAGS
TAGS:
- find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
+ rm -f $@
+ find "$(SRC_PATH)" -name '*.[hc]' -exec etags --append {} +
cscope:
rm -f ./cscope.*