From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 30 16:02:01 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9940D1065670 for ; Sun, 30 Oct 2011 16:02:01 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 60A458FC19 for ; Sun, 30 Oct 2011 16:02:01 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:504f:9791:43c0:21ab]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 5619E4AC2D for ; Sun, 30 Oct 2011 20:02:00 +0400 (MSK) Date: Sun, 30 Oct 2011 20:01:50 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <627176903.20111030200150@serebryakov.spb.ru> To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: How to express inter-directory dependencies in infrastructure? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2011 16:02:01 -0000 Hello, Hackers. (SORRY FOR SENDING INCOMPLETE MESSAGE) How to express inter-directory dependencies in 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 =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 "" included, and "bin" -- with 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