Re: bfd BLD-POTFILES.in dependencies
authorAlan Modra <amodra@gmail.com>
Wed, 5 Oct 2022 23:15:56 +0000 (09:45 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 5 Oct 2022 23:15:56 +0000 (09:45 +1030)
Removing $BLD_POTFILES from BFD-POTFILES.in was correct, but left a
hole in dependencies.
make[4]: Entering directory '/home/alan/build/gas/all/bfd/po'
make[4]: *** No rule to make target '../elf32-aarch64.c', needed by '/home/alan/src/binutils-gdb/bfd/po/bfd.pot'.  Stop.

* Makefile.am (BUILT_SOURCES): Add BUILD_CFILES.
* Makefile.in: Regenerate.

bfd/Makefile.am
bfd/Makefile.in

index 98a487b7fcd4cefdfa214b02a7733a63186c4f39..794d992310d3b158254b627b39bec5bbc4d19540 100644 (file)
@@ -719,7 +719,7 @@ BUILD_HFILES = \
        bfdver.h elf32-target.h elf64-target.h targmatch.h
 
 # Ensure they are built early:
-BUILT_SOURCES = $(BUILD_HFILES)
+BUILT_SOURCES = $(BUILD_HFILES) $(BUILD_CFILES)
 
 HFILES = $(SOURCE_HFILES) $(BUILD_HFILES)
 
index 3c9ebf38f839aa8b53b26e53281af66df0db8197..bdf12c99cfdfe2acf2598e3a3247aa5c08bb22d1 100644 (file)
@@ -1185,7 +1185,7 @@ BUILD_HFILES = \
 
 
 # Ensure they are built early:
-BUILT_SOURCES = $(BUILD_HFILES)
+BUILT_SOURCES = $(BUILD_HFILES) $(BUILD_CFILES)
 HFILES = $(SOURCE_HFILES) $(BUILD_HFILES)
 BFD_H_DEPS = $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h $(INCDIR)/diagnostics.h
 LOCAL_H_DEPS = libbfd.h sysdep.h config.h