On Sat, Jan 22, 2022 at 04:33:08PM +0800, Xi Ruoyao via Gcc-patches wrote: > On Sat, 2022-01-22 at 15:55 +0800, Chenghua Xu wrote: > > +$(srcdir)/config/loongarch/loongarch.opt: \ > > + $(srcdir)/config/loongarch/genopts/genstr.sh \ > > + $(srcdir)/config/loongarch/genopts/loongarch.opt.in > > + $(SHELL) $< opt > $@ > > + > > +$(LA_STR_H): \ > > + $(srcdir)/config/loongarch/genopts/genstr.sh \ > > + $(srcdir)/config/loongarch/genopts/loongarch-strings > > + $(SHELL) $< header > $@ > > I'm not sure about these two rules: is it allowed to modify files in > $(srcdir) running "make"?
No (except in --enable-maintainer-mode), but the above certainly looks wrong, both should be in the objdir instead. Jakub