Fix {c,e}tags/cscope build targets
cover Fix {c,e}tags/cscope build targets
Some "recent" changes (move to Kbuild) to the Makefile broke the tags and cscope build targets.
This patch set brings those back again to working state.
Igor Grinberg (3):
Makefile: fix the {c,e}tags/cscope build targets
Makefile: fix ctags/etags clean targets
Makefile: fix tags target documentation
Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.5.5
PATCH 1/3 Makefile: fix the {c, e}tags/cscope build targets
Commit 9e41403 (kbuild: change out-of-tree build)
changed the U-Boot build working directory to the output tree for the out-of-tree builds.
This broke the {c,e}tags/cscope build targets as TAG_SUBDIRS variable collected directories based on assumption that the build working directory is the U-Boot source tree directory.
Fix the {c,e}tags/cscope build targets by adding the $(srctree) prefix. Also, remove the $(obj) prefix from the etags build target to finish the $(obj) prefix removal started by the same commit.
--- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
@@ -1137,7 +1137,7 @@ spl/sunxi-spl.bin: spl/u-boot-spl tpl/u-boot-tpl.bin: tools prepare $(Q)$(MAKE) obj=tpl -f $(srctree)/scripts/Makefile.spl all CONFIG_TPL_BUILD=y -TAG_SUBDIRS := $(u-boot-dirs) include +TAG_SUBDIRS := $(patsubst %,$(srctree)/%,$(u-boot-dirs) include) FIND := find FINDFLAGS := -L
@@ -1147,7 +1147,7 @@ tags ctags: -name '*.[chS]' -print` etags: - etags -a -o $(obj)etags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \ + etags -a -o etags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \ -name '*.[chS]' -print` cscope: $(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) -name '*.[chS]' -print > \
Signature · 1 line
1.8.5.5
PATCH 1/3 Makefile: fix the {c, e}tags/cscope build targets
Quoted 7 lines · Igor Grinberg
Commit 9e41403 (kbuild: change out-of-tree build)
changed the U-Boot build working directory to the output tree for the out-of-tree builds.
This broke the {c,e}tags/cscope build targets asTAG_SUBDIRSvariable collected directories based on assumption that the build working directory is the U-Boot source tree directory.
Quoted 6 lines
Fix the {c,e}tags/cscope build targets by adding the $(srctree) prefix. Also, remove the $(obj) prefix from the etags build target to finish the $(obj) prefix removal started by the same commit.
Cc Masahiro Yamada <[email protected]>Signed-off-by Igor Grinberg <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140722/2d211d1d/attachment.pgp>
PATCH 2/3 Makefile: fix ctags/etags clean targets
In reply to Igor GrinbergCommit efcf861 (kbuild: use scripts/Makefile.clean)
refactored the cleaning targets and accidentially replaced the actually generated "ctags" and "etags" files in the file list by "tags" and "TAGS". "tags" and "TAGS" are not part of the Makefile build targets and therefore should not be a part of the list for clean targets.
Substitute the actually generated files instead, to fix the clean targets behavior.
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -1222,7 +1222,7 @@ CLOBBER_FILES += u-boot* MLO* SPL System.map MRPROPER_DIRS += include/config include/generated \ .tmp_objdiff MRPROPER_FILES += .config .config.old \ - tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \ + ctags etags cscope* GPATH GTAGS GRTAGS GSYMS \ include/config.h include/config.mk # clean - Delete most, but leave enough to build external modules
Signature · 1 line
1.8.5.5
PATCH 2/3 Makefile: fix ctags/etags clean targets
Quoted 11 lines · Igor Grinberg
Commit efcf861 (kbuild: use
scripts/Makefile.clean)
refactored the cleaning targets and accidentially replaced the actually generated "ctags" and "etags" files in the file list by "tags" and "TAGS". "tags" and "TAGS" are not part of theMakefilebuild targets and therefore should not be a part of the list for clean targets.Substitute the actually generated files instead, to fix the clean targets behavior.
Cc Masahiro Yamada <[email protected]>Signed-off-by Igor Grinberg <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140722/1943b307/attachment.pgp>
PATCH 3/3 Makefile: fix tags target documentation
In reply to Igor GrinbergReplace the TAGS target name by the actual ctags target name. Also, add etags target documentation.
--- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
@@ -1311,7 +1311,8 @@ help: @echo ' dir/file.[oisS] - Build specified target only' @echo ' dir/file.lst - Build specified mixed source/assembly target only' @echo ' (requires a recent binutils and recent build (System.map))' - @echo ' tags/TAGS - Generate tags file for editors' + @echo ' tags/ctags - Generate ctags file for editors' + @echo ' etags - Generate etags file for editors' @echo ' cscope - Generate cscope index' @echo ' ubootrelease - Output the release version string' @echo ' ubootversion - Output the version stored in Makefile'
Signature · 1 line
1.8.5.5
PATCH 3/3 Makefile: fix tags target documentation
Quoted 5 lines · Igor Grinberg
Replace the TAGS target name by the actual ctags target name. Also, add etags target documentation.
Cc Masahiro Yamada <[email protected]>Signed-off-by Igor Grinberg <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140722/1348d82a/attachment.pgp>