Rev 278 | Rev 296 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 279 | agaran | 1 | .PHONY: drc partlist |
| 221 | agaran | 2 | |
| 3 | |||
| 241 | jelle | 4 | SCH=$(shell ls sch/*sch) |
| 221 | agaran | 5 | |
| 279 | agaran | 6 | all: dirs drc partlist |
| 221 | agaran | 7 | |
| 279 | agaran | 8 | # hackish somewhat |
| 9 | dirs: |
||
| 10 | if [ ! -e tmp ]; then mkdir tmp; fi |
||
| 11 | |||
| 244 | jelle | 12 | # i broke the makefile, (jelle) |
| 13 | # http://www.gnu.org/software/m4/manual/html_node/Patsubst.html |
||
| 279 | agaran | 14 | drc: $(addprefix drc/,$(patsubst %.sch,%.drc, $(notdir $(SCH)))) |
| 221 | agaran | 15 | |
| 279 | agaran | 16 | partlist: $(addprefix tmp/,$(patsubst %.sch,%.txt,$(notdir $(SCH)))) |
| 17 | sort $^ |uniq > $@ |
||
| 221 | agaran | 18 | |
| 279 | agaran | 19 | tmp/%.txt: sch/%.sch |
| 20 | gnetlist -g partslist3 -o $@ $^ |
||
| 21 | |||
| 22 | drc/%.drc: sch/%.sch |
||
| 23 | gnetlist -g drc2 -o $@ $^ |