diff --git a/cheshire.mk b/cheshire.mk index a97ac6d9..594c2d59 100644 --- a/cheshire.mk +++ b/cheshire.mk @@ -87,7 +87,7 @@ $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson: # NewUSB registers $(CHS_ROOT)/hw/newusb_regs/newusb_reg_pkg.sv: $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson - $(REGTOOL) -r $< --outdir $(dir $@) && rm -f $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson + $(REGTOOL) -r $< --outdir $(dir $@) $(CHS_ROOT)/hw/newusb_regs/newusb_reg_top.sv: $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson $(REGTOOL) -r $< --outdir $(dir $@) && rm -f $(CHS_ROOT)/hw/newusb_regs/newusb_regs.hjson