summaryrefslogtreecommitdiff
path: root/MakeTAGS
diff options
context:
space:
mode:
Diffstat (limited to 'MakeTAGS')
-rw-r--r--MakeTAGS5
1 files changed, 3 insertions, 2 deletions
diff --git a/MakeTAGS b/MakeTAGS
index e346ac7a1a..f734cbc327 100644
--- a/MakeTAGS
+++ b/MakeTAGS
@@ -73,8 +73,9 @@ else
all-dist = $(distribute)
endif
-sources += $(filter %.c %.s %.S,$(all-dist))
-headers += $(filter %.h,$(all-dist))
+# sources and headers must be simply expanded variables
+sources := $(sources) $(filter %.c %.s %.S,$(all-dist))
+headers := $(headers) $(filter %.h,$(all-dist))
all-dist := $(filter-out %.h %.c %.s %.S,$(all-dist))
sources += $(foreach lib,$(extra-libs),$($(lib)-routines:=.c))