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: geda From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" To: 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> References: <20210701152018 DOT F248283D521B AT turkos DOT aspodata DOT se> Comments: In-reply-to "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" message dated "Thu, 01 Jul 2021 17:20:18 +0200." Mime-Version: 1.0 Content-Type: text/plain Message-Id: <20210703121355.22C0B83DA29F@turkos.aspodata.se> Date: Sat, 3 Jul 2021 14:13:55 +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 Precedence: bulk Karl: > 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 ... ... I come up with: http://aspodata.se/git/openhw/bin/examine_sch.pl It can generate lines like: $ ~/git/openhw/bin/examine_sch.pl depend top.sch top.sch: \ /home/karl/git/openhw/share/gschem/_sub_page/pwr.lm2676.18V_2A.sch \ /home/karl/git/openhw/share/gschem/_sub_page/pwr.mc33063.5Vnl.sch \ [...] /home/karl/git/openhw/share/gschem/_graphical/source.sym \ /home/karl/git/openhw/share/gschem/_electromechanical/switch_h_no.sym \ /home/karl/git/openhw/share/gschem/_electromechanical/switch_hex_u.sym printable: top_a4.ps top_a4.pdf top_a4.ps: top.sch A4liggande_s2.sym source.sym top_a4.pdf: top.sch A4liggande_s2.sym source.sym $ Then one has to attach a suitable recipy to it... Thanks for all help. Regards, /Karl Hammar