delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/01/21/18:05:59

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
To: geda-user AT delorie DOT com
From: "John Griessen (john AT ecosensory DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: [geda-user] makefile for multipage schematics
Message-ID: <e57e199a-370b-ae29-70a2-2a6284d2600e@ecosensory.com>
Date: Sun, 21 Jan 2018 17:03:27 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.4.0
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com

What's your favorite makefile rule for an output that comes from several input files?

Here's my drc, bom, and netlist rules for single page schematics:


=================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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019