X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Thu, 1 Jul 2021 18:21:45 +0200 (CEST) From: Roland Lutz To: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" Subject: Re: [geda-user] how to find sch-sym depenencies for Makefile In-Reply-To: <20210701152018.F248283D521B@turkos.aspodata.se> Message-ID: References: <20210701152018 DOT F248283D521B AT turkos DOT aspodata DOT se> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 1 Jul 2021, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote: > I want to have a program that finds dependencies between a .sch and the > .sch and .sym files it depends on, suitable for makefiles, to write > lines like: > > a.sch: /a.sym /b.sch ... There is the `makedepend' backend. It requires schematic file names to end in a dash and a page number (like `example-1.sch') and doesn't list symbol files, but it may be an appropriate starting point for what you are trying to do: $ gnetlist -o deps.mk -g makedepend example-1.sch Loading schematic [example-1.sch] $ cat deps.mk example-1.sch: example.cir: example-1.sch