Simplified TAGS target implementation.
This commit is contained in:
parent
0b0ab579d2
commit
4d28c6d936
2 changed files with 2 additions and 3 deletions
|
@ -318,7 +318,7 @@ all = env.Alias("all")
|
|||
#
|
||||
|
||||
# Make a tags file for Emacs
|
||||
env.Command("TAGS", sources, 'etags -l c++ $SOURCES')
|
||||
env.Command("TAGS", sources, 'etags -l c++ $SOURCES.srcpath')
|
||||
env.Clean(all, 'TAGS')
|
||||
|
||||
#
|
||||
|
|
|
@ -290,8 +290,7 @@ if env["svnrev"] != "" and env["svnrev"] != "exported":
|
|||
sources = []
|
||||
if "TAGS" in COMMAND_LINE_TARGETS:
|
||||
EnsureSConsVersion(0, 98)
|
||||
patterns = [ os.path.join(dir, file) for dir in ["", "*", "*/*"] for file in ["*.cpp", "*.hpp"] ]
|
||||
sources = [ Glob(pattern, source=True, ondisk=False) for pattern in patterns ]
|
||||
sources = FindSourceFiles()
|
||||
|
||||
Export("sources")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue