diff options
-rw-r--r-- | Makefile.common | 7 | ||||
-rw-r--r-- | Makefile.rules | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common index c64b26f343..470fd81c79 100644 --- a/Makefile.common +++ b/Makefile.common @@ -139,9 +139,14 @@ endif # Create a TAGS database for emacs #------------------------------------------------------------------------ +ifeq ($(LEVEL), .) + tags: - cd $(LEVEL); etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'` + etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'` + +all:: tags +endif #------------------------------------------------------------------------ # Handle the TOOLNAME option - used when building tool executables... diff --git a/Makefile.rules b/Makefile.rules index c64b26f343..470fd81c79 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -139,9 +139,14 @@ endif # Create a TAGS database for emacs #------------------------------------------------------------------------ +ifeq ($(LEVEL), .) + tags: - cd $(LEVEL); etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'` + etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'` + +all:: tags +endif #------------------------------------------------------------------------ # Handle the TOOLNAME option - used when building tool executables... |