diff mbox series

[3/3] scsi: aic7xxx: post-edit includes in generated code

Message ID 20210912213212.12169-3-kilobyte@angband.pl (mailing list archive)
State Changes Requested
Headers show
Series [1/3] scsi: aic7xxx: fix building with -Werror (missing include) | expand

Commit Message

Adam Borowski Sept. 12, 2021, 9:32 p.m. UTC
We rename the files in the very line prior...

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
---
 drivers/scsi/aic7xxx/aicasm/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/scsi/aic7xxx/aicasm/Makefile b/drivers/scsi/aic7xxx/aicasm/Makefile
index 635a2d52dc37..8f354c9b0c9d 100644
--- a/drivers/scsi/aic7xxx/aicasm/Makefile
+++ b/drivers/scsi/aic7xxx/aicasm/Makefile
@@ -69,6 +69,7 @@  $(OUTDIR)/aicasm_gram.c $(OUTDIR)/aicasm_gram.h: aicasm_gram.y
 	$(YACC) $(YFLAGS) -b $(<:.y=) $<
 	mv $(<:.y=).tab.c $(OUTDIR)/$(<:.y=.c)
 	mv $(<:.y=).tab.h $(OUTDIR)/$(<:.y=.h)
+	sed -i 's/\.tab\././' $(OUTDIR)/$(<:.y=.c)
 
 # Create a dependency chain in generated files
 # to avoid concurrent invocations of the single
@@ -78,6 +79,7 @@  $(OUTDIR)/aicasm_macro_gram.c $(OUTDIR)/aicasm_macro_gram.h: aicasm_macro_gram.y
 	$(YACC) $(YFLAGS) -b $(<:.y=) -p mm $<
 	mv $(<:.y=).tab.c $(OUTDIR)/$(<:.y=.c)
 	mv $(<:.y=).tab.h $(OUTDIR)/$(<:.y=.h)
+	sed -i 's/\.tab\././' $(OUTDIR)/$(<:.y=.c)
 
 $(OUTDIR)/aicasm_scan.c: aicasm_scan.l
 	$(LEX) $(LFLAGS) -o $@ $<