Root/bom/Makefile

Source at commit 850e9fca290d2354e97589ff1d5d684523218085 created 9 years 8 months ago.
By Werner Almesberger, More rm -rf to rm -f changes.
1BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
2
3BOOM2=../../eda-tools/boom
4BOOM_CONFIG=$(BOOM2)/boom-config
5
6KITS=1
7
8EQU=atrf.equ dk/digi-key.equ $(shell $(BOOM_CONFIG) equ)
9INV=atrf.inv dk/digi-key.inv $(shell $(BOOM_CONFIG) inv)
10DSC=dk/digi-key.dsc $(shell $(BOOM_CONFIG) dsc)
11CHR=$(shell $(BOOM_CONFIG) chr)
12
13
14.PHONY: all again show-atusd spotless
15
16all: atusd.ord
17
18again:
19        $(MAKE) spotless
20        $(MAKE) all
21
22atusd.ord: atusd.par $(INV) $(EQU)
23        $(BOOM) part2order $(KITS) $(INV) $(EQU) atusd.par >$@ || \
24          { rm -f $@; exit 1; }
25
26atusd.par: $(EQU) $(INV) $(CHR) ../atusd/atusd.lst atrf.sub
27        $(BOOM) bom2part $(EQU) $(INV) $(CHR) \
28          ../atusd/atusd.lst atrf.sub \
29          >$@ || { rm -f $@; exit 1; }
30
31dk/digi-key.inv:
32        $(MAKE) -C dk digi-key.inv
33
34dk/digi-key.dsc:
35        $(MAKE) -C dk digi-key.dsc
36
37show-atusd: atusd.ord $(DSC)
38        grep -vw ATRF atusd.ord | $(BOOM) prettyord -t - $(DSC) | \
39          sed 's/^... //'
40
41spotless:
42        $(MAKE) -C dk spotless
43        rm -f atusd.par atusd.ord
44

Archive Download this file



interactive