gtags.files: $(GYPFILES) $(ENVFILE)
@find include src test -name '*.h' -o -name '*.cc' -o -name '*.c' > $@
-GTAGS GRTAGS GPATH: gtags.files
- @GTAGSFORCECPP=yes gtags -i -q
+# We need to manually set the stack limit here, to work around bugs in
+# gmake-3.81 and global-5.7.1 on recent 64-bit Linux systems.
+GPATH GRTAGS GSYMS GTAGS: gtags.files
+ @bash -c 'ulimit -s 10240 && GTAGSFORCECPP=yes gtags -i -q -f $<'
gtags.clean:
- rm -f GTAGS GRTAGS GPATH gtags.files
+ rm -f gtags.files GPATH GRTAGS GSYMS GTAGS
# Dependencies.
# Remember to keep these in sync with the DEPS file.