Skip to content

Commit 8a543c0

Browse files
dzebanmethane
authored andcommitted
make tags fixes (GH-717)
* Fix `make tags` warnings `make tags` target tries to find C sources and headers in "Grammar" and "Mac" folders and generates these warnings: ctags: Warning: cannot open source file "Grammar/*.[ch]" : No such file or directory ctags: Warning: cannot open source file "Mac/*.[ch]" : No such file or directory This commit changes $SRCDIRS variable in configure.ac to remote these directories. This variable is used only for tags generation. Also, "configure" was regenerated with `autoreconf`. * Fix `make tags` fail on non-default tag names When ctags overrides default tags filename (e.g. `-f .tags`) `make tags` is failed because it assumes to see default `tags` filename: sort: cannot read: tags: No such file or directory This commit explicitly specifies "tags" filename for tags generation.
1 parent 20fbf8a commit 8a543c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ autoconf:
15551555
tags::
15561556
cd $(srcdir); \
15571557
ctags -w Include/*.h; \
1558-
for i in $(SRCDIRS); do ctags -w -a $$i/*.[ch]; \
1558+
for i in $(SRCDIRS); do ctags -f tags -w -a $$i/*.[ch]; \
15591559
done; \
15601560
LC_ALL=C sort -o tags tags
15611561

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16320,7 +16320,7 @@ do
1632016320
done
1632116321

1632216322

16323-
SRCDIRS="Parser Grammar Objects Python Modules Mac Programs"
16323+
SRCDIRS="Parser Objects Python Modules Programs"
1632416324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
1632516325
$as_echo_n "checking for build directories... " >&6; }
1632616326
for dir in $SRCDIRS; do

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5200,7 +5200,7 @@ do
52005200
done
52015201

52025202
AC_SUBST(SRCDIRS)
5203-
SRCDIRS="Parser Grammar Objects Python Modules Mac Programs"
5203+
SRCDIRS="Parser Objects Python Modules Programs"
52045204
AC_MSG_CHECKING(for build directories)
52055205
for dir in $SRCDIRS; do
52065206
if test ! -d $dir; then

0 commit comments

Comments
 (0)