# HG changeset patch # User Michael Pavone # Date 1739520688 28800 # Node ID 486e07a624694351ed0c00f339ee016207d0785d # Parent b63059c1921c985e8ec515eee76d67d82ae4d3cc GNU make before 4.3 does not support :& syntax, but apparently pattern rules support grouped targets without it diff -r b63059c1921c -r 486e07a62469 Makefile --- a/Makefile Thu Feb 13 23:08:56 2025 -0800 +++ b/Makefile Fri Feb 14 00:11:28 2025 -0800 @@ -372,12 +372,9 @@ vos_prog_info : $(OBJDIR)/vos_prog_info.o $(OBJDIR)/vos_program_module.o $(CC) -o $@ $^ $(OPT) -m68k.c m68k.h &: m68k.cpu cpu_dsl.py - ./cpu_dsl.py -d call $< > m68k.c - .PRECIOUS: %.c -%.c %.h &: %.cpu cpu_dsl.py - ./cpu_dsl.py -d $(Z80_DISPATCH) $< > $(shell echo $@ | sed -E 's/\.[ch]$$/./')c +%.c %.h : %.cpu cpu_dsl.py + ./cpu_dsl.py -d $(shell echo $@ | sed -E -e "s/^z80.*$$/$(Z80_DISPATCH)/" -e '/^goto/! s/^.*$$/call/') $< > $(shell echo $@ | sed -E 's/\.[ch]$$/./')c %.db.c : %.db sed $< -e 's/"/\\"/g' -e 's/^\(.*\)$$/"\1\\n"/' -e'1s/^\(.*\)$$/const char $(shell echo $< | tr '.' '_')_data[] = \1/' -e '$$s/^\(.*\)$$/\1;/' > $@