diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-12-12 08:48:25 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-12-12 08:48:25 +0100 |
commit | 313095ba2d898d46b768ddc804707b17212567ee (patch) | |
tree | e07812bc4f30cb190bdfde68f95e1b9df1b82a09 /gas/Makefile.am | |
parent | 27cf5a35ce9698e60063eb0acf2e8c31143bd4bf (diff) | |
download | binutils-313095ba2d898d46b768ddc804707b17212567ee.zip binutils-313095ba2d898d46b768ddc804707b17212567ee.tar.gz binutils-313095ba2d898d46b768ddc804707b17212567ee.tar.bz2 |
x86: add generated tables dependency check to gas
As requested by H.J., just for the sake of people potentially building
in gas/ alone, add a check that the generated files in opcodes/ are
actually up-to-date. Personally I think this should at best be a
warning, but I can see how this may not be easily noticable among other
make output (depending in particular on the verbosity level).
Diffstat (limited to 'gas/Makefile.am')
-rw-r--r-- | gas/Makefile.am | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/Makefile.am b/gas/Makefile.am index dc59312..1c4b3c1 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -448,6 +448,17 @@ development.exp: $(BFDDIR)/development.sh $(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh \ | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@ +config/tc-i386.o: $(srcdir)/../opcodes/i386-init.h $(srcdir)/../opcodes/i386-tbl.h + +i386_tbl_deps = $(srcdir)/../opcodes/i386-opc.tbl \ + $(srcdir)/../opcodes/i386-reg.tbl \ + $(srcdir)/../opcodes/i386-gen.c $(srcdir)/../opcodes/i386-opc.h + +$(srcdir)/../opcodes/i386%init.h $(srcdir)/../opcodes/i386%tbl.h: @MAINT@ $(i386_tbl_deps) + @echo '"$@" is outdated wrt "$?"' >&2 + @echo 'Please rebuild from the top level or in $(CURDIR)/../opcodes/' >&2 + @false + EXTRA_as_new_SOURCES += config/m68k-parse.y config/m68k-parse.c: $(srcdir)/config/m68k-parse.y $(SHELL) $(YLWRAP) $(srcdir)/config/m68k-parse.y y.tab.c $@ -- $(YACCCOMPILE) |