Root/components/Makefile

Source at commit 7f3f9267cb007e13eca0af273f9eedad0c6c5659 created 2 years 2 months ago.
By Werner Almesberger, components/stm32.lib: add STM32L052x6/8 in QFN32 (KxU) 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        ../scripts/missing-in-tree -Q $(GEN:%=-x %) -L . components.pro
44
45%.lib: %.pl
46        ./$< >$@ || { rm -f $@; exit 1; }
47
48#loe:
49# ./mkloe
50
51clean:
52        rm -f DESCR-dcm title.ps
53
54spotless: clean
55        rm -f catalog.pdf $(GEN)
56

Archive Download this file

Branches:
master



interactive