Rev 278 | Rev 320 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
.PHONY: drc partlist
SCH=$(shell ls sch/*sch)
all: dirs drc partlist
# hackish somewhat
dirs:
if [ ! -e tmp ]; then mkdir tmp; fi
# i broke the makefile, (jelle)
# http://www.gnu.org/software/m4/manual/html_node/Patsubst.html
drc: $(addprefix drc/,$(patsubst %.sch,%.drc, $(notdir $(SCH))))
partlist: $(addprefix tmp/,$(patsubst %.sch,%.txt,$(notdir $(SCH))))
sort $^ |uniq > $@
tmp/%.txt: sch/%.sch
gnetlist -g partslist3 -o $@ $^
drc/%.drc: sch/%.sch
gnetlist -g drc2 -o $@ $^