summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2021-05-17 18:37:09 +1000
committerfuzzard <fuzzard@kodi.tv>2021-05-17 18:37:09 +1000
commit08a35c6e3c4526c310f29d4e8ab4cbe358df884d (patch)
tree5c9b99933b00a732050ff4a9b9095b8f0c2d9295
parent50b6210dd08d1015276f668b347d6b75df60902c (diff)
[osx] fix build failure for osx due to sed command for %.db.c rule
OSX doesn't like having the file input for sed before the command options. Fails with error: sed: -e: No such file or directory sed: s/"/\\"/g: No such file or directory sed: -e: No such file or directory sed: s/^\(.*\)$/"\1\\n"/: No such file or directory sed: -e1s/^\(.*\)$/const char rom_db_data[] = \1/: No such file or directory sed: -e: No such file or directory sed: $s/^\(.*\)$/\1;/: No such file or directory
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d59bb76..a078761 100644
--- a/Makefile
+++ b/Makefile
@@ -352,7 +352,7 @@ m68k.c : m68k.cpu cpu_dsl.py
./cpu_dsl.py -d goto $< > $@
%.db.c : %.db
- sed $< -e 's/"/\\"/g' -e 's/^\(.*\)$$/"\1\\n"/' -e'1s/^\(.*\)$$/const char $(shell echo $< | tr '.' '_')_data[] = \1/' -e '$$s/^\(.*\)$$/\1;/' > $@
+ sed -e 's/"/\\"/g' -e 's/^\(.*\)$$/"\1\\n"/' -e'1s/^\(.*\)$$/const char $(shell echo $< | tr '.' '_')_data[] = \1/' -e '$$s/^\(.*\)$$/\1;/' $< > $@
%.o : %.S
$(CC) -c -o $@ $<