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