Root/components/Makefile

Source at commit 38cb8de06d5581730bc545f65f5f9a4c2de00dfb created 10 years 6 months ago.
By Werner Almesberger, components/: add Freescale Kinetis KL25 in 48 pin package
1#
2# From http://svn.openmoko.org/trunk/gta02-core/components/
3#
4# Note that we don't have the concept of a "library of everything" so far.
5#
6
7SHELL = /bin/bash
8
9GEN = gencon.lib
10
11TITLE_NAME = SYMBOLS/COMPONENTS
12TITLE_FILE = kicad-libs-components.pdf
13
14.PHONY: all sch catalog view upload missing clean spotless
15
16all: $(GEN)
17
18# @echo "make what ? targets: sch loe"
19# @exit 1
20
21sch: $(GEN)
22        eeschema `pwd`/components.sch
23
24DESCR-dcm: *.dcm
25        ../scripts/dcm2desc -L . >$@ || { rm -f $@; exit 1; }
26
27include ../common/Makefile.title
28
29catalog catalog.pdf: HIERARCHY DESCR-dcm *.lib $(GEN)
30        $(MAKE) title.ps
31        genkicat -p -L . -t title.ps HIERARCHY DESCR-dcm \
32          >catalog.pdf || \
33          { rm -f catalog.pdf; exit 1; }
34
35view: catalog.pdf
36        $${DSV_PDFVIEWER:-xpdf} catalog.pdf
37
38upload: catalog.pdf
39        qippl catalog.pdf tmp/kicad-libs-components.pdf
40
41missing: $(GEN)
42        ../scripts/missing-in-tree -L . HIERARCHY
43
44%.lib: %.pl
45        ./$< >$@ || { rm -f $@; exit 1; }
46
47#loe:
48# ./mkloe
49
50clean:
51        rm -f DESCR-dcm title.ps
52
53spotless: clean
54        rm -f catalog.pdf $(GEN)
55

Archive Download this file

Branches:
master



interactive