build: fixup for building in a VPATH setup
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 14 May 2013 10:12:44 +0000 (12:12 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 14 May 2013 10:12:44 +0000 (12:12 +0200)
* bin/Makefile.inc (%D%/automake, %D%/aclocal): Make sure that the
directory where the targets scripts are going to be built exists,
before trying to create said scripts.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
bin/Makefile.inc

index 280fff0..5842b71 100644 (file)
@@ -56,6 +56,7 @@ uninstall-hook:
 %D%/aclocal: %D%/aclocal.in
 %D%/automake %D%/aclocal: Makefile %D%/gen-perl-protos
        $(AM_V_GEN)rm -f $@ $@-t $@-t2 \
+         && $(MKDIR_P) $(@D) \
 ## Common substitutions.
          && in=$@.in && $(do_subst) <$(srcdir)/$$in >$@-t \
 ## Auto-compute prototypes of perl subroutines.