summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-06-30 12:09:38 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-06-30 16:12:10 +0000
commitaec381c4c6d9684b8f76b0fd4aaae63076f483e0 (patch)
treea6daf3d8180c455b86a85d9379fe86209039495d
parentf26cf6a3ecb6b321f8ffdb8f144f5c169b28c0c0 (diff)
downloadrockbox-aec381c.tar.gz
rockbox-aec381c.zip
database: Fix makefile syntax for GNU Make 4.3+
Change-Id: If8749aff19f92aae28f5f73aaf843428d7f4b462
-rw-r--r--tools/database/database.make6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/database/database.make b/tools/database/database.make
index c29dd47f9b..7fc360232e 100644
--- a/tools/database/database.make
+++ b/tools/database/database.make
@@ -9,9 +9,11 @@
GCCOPTS += -g -DDEBUG -D__PCTOOL__ -DDBTOOL
-createsrc = $(shell cat $(1) > $(3); echo "\#if CONFIG_CODEC == SWCODEC" >> $(3); \
+# Make compatibility hack
+H := \#
+createsrc = $(shell cat $(1) > $(3); echo "$(H)if CONFIG_CODEC == SWCODEC" >> $(3); \
echo $(2) | sed 's/ /\n/g' >> $(3); \
- echo "\#endif" >> $(3); \
+ echo "$(H)endif" >> $(3); \
echo $(3))
METADATAS := $(call full_path_subst,$(ROOTDIR)/%,../../%,$(wildcard $(ROOTDIR)/lib/rbcodec/metadata/*.c))