delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
X-Mailer: | exmh version 2.8.0 04/21/2012 with nmh-1.7+dev |
X-Exmh-Isig-CompType: | repl |
X-Exmh-Isig-Folder: | inbox |
From: | "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
To: | geda-user AT delorie DOT com |
Mail-Followup-To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] how to find sch-sym depenencies for Makefile |
In-reply-to: | <YN38OhSVu4qv1JVn@lepton> |
References: | <20210701152018 DOT F248283D521B AT turkos DOT aspodata DOT se> <YN38OhSVu4qv1JVn AT lepton> |
Comments: | In-reply-to "vzh (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
message dated "Thu, 01 Jul 2021 20:32:42 +0300." | |
Mime-Version: | 1.0 |
Message-Id: | <20210701191027.61B3983D521B@turkos.aspodata.se> |
Date: | Thu, 1 Jul 2021 21:10:27 +0200 (CEST) |
X-Virus-Scanned: | ClamAV using ClamSMTP |
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 |
Vladimir: > On Thu, Jul 01, 2021 at 05:20:18PM +0200, 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: <somewhere>/a.sym <there>/b.sch ... ... > An attached first draft patch for makedepend backend does the job ... > lepton-netlist -f utils/netlist/scheme/backend/gnet-makedepend.scm \ > -o output utils/netlist/tests/hierarchy.sch Nice! It do contain duplicates, but I can handle that, thanks. $ grep pwr.mc33063.5Vnl.sch: output | tr ' ' '\n' | sort | uniq -c 3 /home/karl/git/openhw/share/gschem/_discrete/cap_v.sym 1 /home/karl/git/openhw/share/gschem/_discrete/diode_schottky_v.sym 1 /home/karl/git/openhw/share/gschem/_discrete/ind2_h.sym 3 /home/karl/git/openhw/share/gschem/_discrete/res_v.sym 3 /home/karl/git/openhw/share/gschem/_graphical/netif_power.sym 1 /home/karl/git/openhw/share/gschem/_semiconductor/mc33063.sym 1 pwr.mc33063.5Vnl.sch: Regards, /Karl Hammar
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |