* [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH
@ 2015-05-22 5:35 Fam Zheng
2015-05-22 5:35 ` [Qemu-devel] [PATCH v2 1/2] Makefile: Fix "make cscope TAGS" Fam Zheng
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Fam Zheng @ 2015-05-22 5:35 UTC (permalink / raw)
To: qemu-devel
Fam Zheng (2):
Makefile: Fix "make cscope TAGS"
Makefile: Add "make ctags"
Makefile | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
--
2.4.1
^ permalink raw reply [flat|nested] 9+ messages in thread* [Qemu-devel] [PATCH v2 1/2] Makefile: Fix "make cscope TAGS" 2015-05-22 5:35 [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH Fam Zheng @ 2015-05-22 5:35 ` Fam Zheng 2015-05-22 5:35 ` [Qemu-devel] [PATCH v2 2/2] Makefile: Add "make ctags" Fam Zheng 2015-06-11 8:41 ` Fam Zheng 2 siblings, 0 replies; 9+ messages in thread From: Fam Zheng @ 2015-05-22 5:35 UTC (permalink / raw) To: qemu-devel Cscope and TAGS files work in source directory rather than the build directory, also, don't ask users to run configure first, because they may have an out of tree build. Signed-off-by: Fam Zheng <famz@redhat.com> --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d945804..d4515fa 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,11 @@ # Always point to the root of the build tree (needs GNU make). BUILD_DIR=$(CURDIR) +# Before including a proper config-host.mak, assume we are in the source tree +SRC_PATH=. + +UNCHECKED_GOALS := %clean TAGS cscope + # All following code might depend on configuration variables ifneq ($(wildcard config-host.mak),) # Put the all: rule here so that config-host.mak can contain dependencies. @@ -38,7 +43,7 @@ config-host.mak: $(SRC_PATH)/configure fi else config-host.mak: -ifneq ($(filter-out %clean,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail)) +ifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail)) @echo "Please call configure before running make!" @exit 1 endif @@ -438,9 +443,9 @@ TAGS: find "$(SRC_PATH)" -name '*.[hc]' -exec etags --append {} + cscope: - rm -f ./cscope.* - find "$(SRC_PATH)" -name "*.[chsS]" -print | sed 's,^\./,,' > ./cscope.files - cscope -b + rm -f "$(SRC_PATH)"/cscope.* + find "$(SRC_PATH)/" -name "*.[chsS]" -print | sed 's,^\./,,' > "$(SRC_PATH)/cscope.files" + cscope -b -i"$(SRC_PATH)/cscope.files" # opengl shader programs ui/shader/%-vert.h: $(SRC_PATH)/ui/shader/%.vert $(SRC_PATH)/scripts/shaderinclude.pl @@ -583,7 +588,7 @@ endif # CONFIG_WIN # Add a dependency on the generated files, so that they are always # rebuilt before other object files -ifneq ($(filter-out %clean,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail)) +ifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail)) Makefile: $(GENERATED_HEADERS) endif -- 2.4.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* [Qemu-devel] [PATCH v2 2/2] Makefile: Add "make ctags" 2015-05-22 5:35 [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH Fam Zheng 2015-05-22 5:35 ` [Qemu-devel] [PATCH v2 1/2] Makefile: Fix "make cscope TAGS" Fam Zheng @ 2015-05-22 5:35 ` Fam Zheng 2015-06-11 8:41 ` Fam Zheng 2 siblings, 0 replies; 9+ messages in thread From: Fam Zheng @ 2015-05-22 5:35 UTC (permalink / raw) To: qemu-devel This generates ctags file Signed-off-by: Fam Zheng <famz@redhat.com> --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d4515fa..f2efe71 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ BUILD_DIR=$(CURDIR) # Before including a proper config-host.mak, assume we are in the source tree SRC_PATH=. -UNCHECKED_GOALS := %clean TAGS cscope +UNCHECKED_GOALS := %clean TAGS cscope ctags # All following code might depend on configuration variables ifneq ($(wildcard config-host.mak),) @@ -437,6 +437,11 @@ endif test speed: all $(MAKE) -C tests/tcg $@ +.PHONY: ctags +ctags: + rm -f $@ + find "$(SRC_PATH)" -name '*.[hc]' -exec ctags --append {} + + .PHONY: TAGS TAGS: rm -f $@ -- 2.4.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH 2015-05-22 5:35 [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH Fam Zheng @ 2015-06-11 8:41 ` Fam Zheng 2015-05-22 5:35 ` [Qemu-devel] [PATCH v2 2/2] Makefile: Add "make ctags" Fam Zheng 2015-06-11 8:41 ` Fam Zheng 2 siblings, 0 replies; 9+ messages in thread From: Fam Zheng @ 2015-06-11 8:41 UTC (permalink / raw) To: qemu-devel; +Cc: qemu-trivial, peter.maydell On Fri, 05/22 13:35, Fam Zheng wrote: Ping :) Fam > > > Fam Zheng (2): > Makefile: Fix "make cscope TAGS" > Makefile: Add "make ctags" > > Makefile | 20 +++++++++++++++----- > 1 file changed, 15 insertions(+), 5 deletions(-) > > -- > 2.4.1 > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH @ 2015-06-11 8:41 ` Fam Zheng 0 siblings, 0 replies; 9+ messages in thread From: Fam Zheng @ 2015-06-11 8:41 UTC (permalink / raw) To: qemu-devel; +Cc: qemu-trivial, peter.maydell On Fri, 05/22 13:35, Fam Zheng wrote: Ping :) Fam > > > Fam Zheng (2): > Makefile: Fix "make cscope TAGS" > Makefile: Add "make ctags" > > Makefile | 20 +++++++++++++++----- > 1 file changed, 15 insertions(+), 5 deletions(-) > > -- > 2.4.1 > > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-trivial] [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH 2015-06-11 8:41 ` Fam Zheng @ 2015-06-11 18:01 ` John Snow -1 siblings, 0 replies; 9+ messages in thread From: John Snow @ 2015-06-11 18:01 UTC (permalink / raw) To: Fam Zheng, qemu-devel; +Cc: qemu-trivial, peter.maydell On 06/11/2015 04:41 AM, Fam Zheng wrote: > On Fri, 05/22 13:35, Fam Zheng wrote: > > Ping :) > > Fam > >> >> >> Fam Zheng (2): >> Makefile: Fix "make cscope TAGS" >> Makefile: Add "make ctags" >> >> Makefile | 20 +++++++++++++++----- >> 1 file changed, 15 insertions(+), 5 deletions(-) >> >> -- >> 2.4.1 >> >> > Looks good to me -- this has long been a major annoyance of mine when I want to review code (and zip around) without trying to configure it first. Reviewed-by: John Snow <jsnow@redhat.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH @ 2015-06-11 18:01 ` John Snow 0 siblings, 0 replies; 9+ messages in thread From: John Snow @ 2015-06-11 18:01 UTC (permalink / raw) To: Fam Zheng, qemu-devel; +Cc: qemu-trivial, peter.maydell On 06/11/2015 04:41 AM, Fam Zheng wrote: > On Fri, 05/22 13:35, Fam Zheng wrote: > > Ping :) > > Fam > >> >> >> Fam Zheng (2): >> Makefile: Fix "make cscope TAGS" >> Makefile: Add "make ctags" >> >> Makefile | 20 +++++++++++++++----- >> 1 file changed, 15 insertions(+), 5 deletions(-) >> >> -- >> 2.4.1 >> >> > Looks good to me -- this has long been a major annoyance of mine when I want to review code (and zip around) without trying to configure it first. Reviewed-by: John Snow <jsnow@redhat.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-trivial] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH 2015-06-11 8:41 ` Fam Zheng @ 2015-06-17 19:38 ` Michael Tokarev -1 siblings, 0 replies; 9+ messages in thread From: Michael Tokarev @ 2015-06-17 19:38 UTC (permalink / raw) To: Fam Zheng, qemu-devel; +Cc: qemu-trivial, peter.maydell 11.06.2015 11:41, Fam Zheng пишет: > On Fri, 05/22 13:35, Fam Zheng wrote: > > Ping :) Applied to -trivial, thanks! /mjt ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH @ 2015-06-17 19:38 ` Michael Tokarev 0 siblings, 0 replies; 9+ messages in thread From: Michael Tokarev @ 2015-06-17 19:38 UTC (permalink / raw) To: Fam Zheng, qemu-devel; +Cc: qemu-trivial, peter.maydell 11.06.2015 11:41, Fam Zheng пишет: > On Fri, 05/22 13:35, Fam Zheng wrote: > > Ping :) Applied to -trivial, thanks! /mjt ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-06-17 19:38 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-05-22 5:35 [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH Fam Zheng 2015-05-22 5:35 ` [Qemu-devel] [PATCH v2 1/2] Makefile: Fix "make cscope TAGS" Fam Zheng 2015-05-22 5:35 ` [Qemu-devel] [PATCH v2 2/2] Makefile: Add "make ctags" Fam Zheng 2015-06-11 8:41 ` [Qemu-trivial] [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH Fam Zheng 2015-06-11 8:41 ` Fam Zheng 2015-06-11 18:01 ` [Qemu-trivial] " John Snow 2015-06-11 18:01 ` John Snow 2015-06-17 19:38 ` [Qemu-trivial] " Michael Tokarev 2015-06-17 19:38 ` [Qemu-devel] " Michael Tokarev
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.