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 (debian 1:2.8.0-6) with X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: inbox From: karl AT aspodata DOT se To: geda-user AT delorie DOT com Subject: Re: [geda-user] makefile for multipage schematics In-reply-to: References: Comments: In-reply-to "John Griessen (john AT ecosensory DOT com) [via geda-user AT delorie DOT com]" message dated "Sun, 21 Jan 2018 17:03:27 -0600." Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20180129143438.24BF88076F4C@turkos.aspodata.se> Date: Mon, 29 Jan 2018 15:34:37 +0100 (CET) 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 John: > What's your favorite makefile rule for an output that comes from several input files? What do you mean, . several .sch files not directly related to each other . or a .sch file with subschematics ? > Here's my drc, bom, and netlist rules for single page schematics: Can't help you with drc and netlist for the moment. > =================drc, bom, and netlist rules========================= > drc: $(DRC) > > $(DRC): %.drc: %.sch > > gnetlist -g drc2 $< -o $@ > > > bom: $(BOMS) > > $(BOMS): %.bom.tsv: %.sch > gnetlist -g partslist3 $< -o $@ > > > net: $(NETS) $(BOMS) $(DRC) > > $(NETS): %.net: %.sch > > gnetlist -g PCB $< -o $@ > =================drc, bom, and netlist rules========================= > > So, if you make a specific rule for a two pager schematic, is there a way to not create the > outputs for its single pages? > > Here's a script I run by hand for the multipage schematic: > > #!/bin/bash > gnetlist -g partslist3 pyflex_f401.sch pyflex_f401_boost.sch -o pyflex_f401_all.net I use: %.sch.list: %.sch GnetParts.pl $< where GnetParts.pl is http://aspodata.se/git/openhw/bin/GnetParts.pl wich uses gnetlist -g partslist1, it fixes the output of gnetlist to something I can easilier digest, example output in http://aspodata.se/tmp/gEDA/ *.list1 and list2 But my guess is that it isn't what you're asking about. What about having a top .sch which with the pages you want included as subpages and running gnetlist on that, then you will always run your thing on "single" pages... Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57