Oops, I forgot to 'mkdir -p malloc' in the build directory. In some environments, the Makefile's 'dirstamp' handling does it automatically; in others, it doesn't.
2021-06-07 Bruno Haible <[email protected]> dynarray, scratch_buffer: Fix VPATH builds (regression from yesterday). * modules/dynarray (configure.ac): Invoke AC_PROG_MKDIR_P. (Makefile.am): Create malloc/ directory before creating malloc/dynarray.gl.h and malloc/dynarray-skeleton.gl.h. * modules/scratch_buffer (configure.ac): Invoke AC_PROG_MKDIR_P. (Makefile.am): Create malloc/ directory before creating malloc/scratch_buffer.gl.h. diff --git a/modules/dynarray b/modules/dynarray index 7fd444f..fa608de 100644 --- a/modules/dynarray +++ b/modules/dynarray @@ -20,11 +20,13 @@ stddef intprops configure.ac: +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += malloc/dynarray.gl.h malloc/dynarray-skeleton.gl.h malloc/dynarray.gl.h: malloc/dynarray.h + $(AM_V_at)$(MKDIR_P) malloc $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e '/libc_hidden_proto/d' < $(srcdir)/malloc/dynarray.h; \ @@ -33,6 +35,7 @@ malloc/dynarray.gl.h: malloc/dynarray.h MOSTLYCLEANFILES += malloc/dynarray.gl.h malloc/dynarray.gl.h-t malloc/dynarray-skeleton.gl.h: malloc/dynarray-skeleton.c + $(AM_V_at)$(MKDIR_P) malloc $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|<malloc/dynarray\.h>|<malloc/dynarray.gl.h>|g' \ diff --git a/modules/scratch_buffer b/modules/scratch_buffer index ede77a9..184f0b6 100644 --- a/modules/scratch_buffer +++ b/modules/scratch_buffer @@ -20,11 +20,13 @@ realloc-posix free-posix configure.ac: +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += malloc/scratch_buffer.gl.h malloc/scratch_buffer.gl.h: malloc/scratch_buffer.h + $(AM_V_at)$(MKDIR_P) malloc $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ sed -e 's|__always_inline|inline _GL_ATTRIBUTE_ALWAYS_INLINE|g' \
