]> git.ipfire.org Git - thirdparty/util-linux.git/commit
build-sys: create parent directory for $(PATHFILES)
authorMichael Marineau <michael.marineau@coreos.com>
Wed, 3 Sep 2014 03:39:28 +0000 (20:39 -0700)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Sep 2014 07:50:24 +0000 (09:50 +0200)
commitcb52ac9847b70bfab3b6ca45b3e81e6c89900190
tree78670e761c6e42b18c1342437a6de9e2ad5cca9d
parent7b83dcc8a8c16c97f68e7903d265b70721a593d7
build-sys: create parent directory for $(PATHFILES)

When building outside the source tree there is nothing to guarantee the
target directory exists before writing to it. Most of the time this just
happens to work because something else creates the directory but not
always. For example:

    $ mkdir build
    $ cd build
    $ ../configure --disable-dependency-tracking
    $ make libuuid/uuid.pc
      GEN      libuuid/uuid.pc
    /bin/sh: line 2: libuuid/uuid.pc.tmp: No such file or directory
    make: *** [libuuid/uuid.pc] Error 1
Makefile.am