Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2011 20:01:50 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        hackers@freebsd.org
Subject:   How to express inter-directory dependencies in <bsd.*.mk> infrastructure?
Message-ID:  <627176903.20111030200150@serebryakov.spb.ru>

next in thread | raw e-mail | index | archive | help
Hello, Hackers.

  (SORRY FOR SENDING INCOMPLETE MESSAGE)

  How to express inter-directory dependencies in <bsd.*.mk> infrastructure?

  I have project, which has two subdirectories: "lib" and "bin".
 Top-level Makefile is simple one, looks like this:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
SUBDIR=3D lib \
        bin

.include <bsd.subdir.mk>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

 "lib" subdirectory has Makefile with "<bsd.lib.mk>" included, and
 "bin" -- with <bsd.prog.mk> included.

 But how could I express, that PROG in bin depends on LIB from lib, to
cause rebuilding of PROG when LIB is changed (when I call "make" on
top level)?

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?627176903.20111030200150>