summaryrefslogtreecommitdiff
path: root/builds/toplevel.mk
diff options
context:
space:
mode:
Diffstat (limited to 'builds/toplevel.mk')
-rw-r--r--builds/toplevel.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/builds/toplevel.mk b/builds/toplevel.mk
index f51ad16b9..7ce0ed8db 100644
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -172,7 +172,8 @@ include $(TOP_DIR)/builds/modules.mk
# get FreeType version string, using a
# poor man's `sed' emulation with make's built-in string functions
#
-work := $(strip $(shell $(CAT) $(TOP_DIR)/include/freetype/freetype.h))
+work := $(strip $(shell $(CAT) \
+ $(subst /,$(SEP),$(TOP_DIR)/include/freetype/freetype.h)))
work := $(subst |,x,$(work))
work := $(subst $(space),|,$(work))
work := $(subst \#define|FREETYPE_MAJOR|,$(space),$(work))