summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common4
-rw-r--r--Makefile.rules4
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index 95fa3b2758..11c6a2376d 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -615,8 +615,10 @@ endif
ifdef ETAGS
ifeq ($(LEVEL), .)
+SRCDIRS := $(wildcard include lib tools)
+
tags:
- $(ETAGS) -l c++ `find include lib tools -name '*.cpp' -o -name '*.h'`
+ $(ETAGS) -l c++ `find $(SRCDIRS) -name '*.cpp' -o -name '*.h'`
all:: tags
endif
else
diff --git a/Makefile.rules b/Makefile.rules
index 95fa3b2758..11c6a2376d 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -615,8 +615,10 @@ endif
ifdef ETAGS
ifeq ($(LEVEL), .)
+SRCDIRS := $(wildcard include lib tools)
+
tags:
- $(ETAGS) -l c++ `find include lib tools -name '*.cpp' -o -name '*.h'`
+ $(ETAGS) -l c++ `find $(SRCDIRS) -name '*.cpp' -o -name '*.h'`
all:: tags
endif
else