summaryrefslogtreecommitdiffstats
path: root/tools/functions.make
diff options
context:
space:
mode:
Diffstat (limited to 'tools/functions.make')
-rw-r--r--tools/functions.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/functions.make b/tools/functions.make
index bab8a8d148..dd87377f87 100644
--- a/tools/functions.make
+++ b/tools/functions.make
@@ -20,7 +20,7 @@
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) | \
grep -v '^\#' | \
- sed -e 's:^.\+:$(dir $(1))&:')
+ sed -e 's:^..*:$(dir $(1))&:')
preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \
grep -v '^\#' | grep -v "^$$" > $(2))