[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with VPATH builds and SCRIPTS primary
From: |
Russ Allbery |
Subject: |
Re: Problem with VPATH builds and SCRIPTS primary |
Date: |
Thu, 27 Oct 2016 14:06:34 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Raphaël Halimi <address@hidden> writes:
> According to section 2.2.6 of GNU automake documentation:
> "The build tree usually has the same subdirectory layout as the source
> tree; its subdirectories are created automatically by the build system."
> Unfortunately, it doesn't seem to be true for the SCRIPTS primary (I
> assume it's true and works as expected for compiled binaries and
> libraries, I can't know, I'm new to autotools and I'm a sysadmin, I
> develop only scripts, nothing compiled).
I've run into this problem before, and just had Autoconf create the
directory by adding:
AC_CONFIG_COMMANDS([server], [test -d server || mkdir server])
(in my case, the name of the directory containing the scripts was server).
It's kind of a hack, but it works.
--
Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>