From 08a35c6e3c4526c310f29d4e8ab4cbe358df884d Mon Sep 17 00:00:00 2001 From: fuzzard Date: Mon, 17 May 2021 18:37:09 +1000 Subject: [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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $@ $< -- cgit v1.2.3