Make footprint files depend on footprint.5c
[hw/altusmetrum] / packages / diodes / Makefile
1 .SUFFIXES: .5c .py .fp
2
3 FOOTPRINTS = \
4         0605.fp \
5         powerdi123.fp \
6         topled.fp \
7         2125.fp
8
9 .5c.fp:
10         nickle $*.5c > $@
11
12 .py.fp:
13         python $*.py > $@
14
15 all: $(FOOTPRINTS) .gitignore
16
17 $(FOOTPRINTS): ../footprint.5c
18
19 clean:
20         rm -f $(FOOTPRINTS)
21
22 .gitignore: Makefile
23         for i in $@ $(FOOTPRINTS); do echo $$i; done > $@