Root/modules/Makefile

1MODULES=0805-6 1059 8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
2    bat-clip-aa-th bga \
3    c-smd c-t-smd \
4    dcjack df40 dfn din-5 dip dip4of6 do-214 dvi-recept-ra \
5    e-switch320 er-oled-fpc30 eus evqq7 \
6        fiducial \
7    header he-2row-dip he-shrouded \
8    inductor-2p ir \
9    lga ledsmd lp2032sm \
10    mdip meander-2450MHz memcard8-amp-10100660 memcard8-hirose-dm3cs \
11    memcard8-jae-st1w008s4b memcard8-molex-1050270001 \
12    mic-ra-dip mini-usb msl0104 \
13    pads pads-array phonejack pogo \
14    qfn qfp \
15    rca-3-ra rev-led rj45 \
16    sod soic sot23 spacer sot sot-323 ssop stdpass stqfn20 sw-spdt-smt \
17    tact-4-rect-smt tactile-sw-spst-ra-dip to tsop tssop5 tswa \
18    usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt usb_a_rcpt_smt \
19    usb_a_rcpt_mid \
20    vson-powerpad \
21    xlr-plug xlr-socket \
22     xtal-2 xtal-4 \
23    zx62-b-5pa zx62m-b-5p
24
25SHELL = /bin/bash
26
27TITLE_NAME = FOOTPRINTS/MODULES
28TITLE_FILE = kicad-libs-modules.pdf
29
30.SUFFIXES: .fpd .mod
31.PHONY: all brd catalog view upload missing clean spotless
32
33all: $(MODULES:%=%.mod)
34
35.fpd.mod:
36        fped -k $< $@
37
38modules.pro: Makefile
39        ../scripts/modules-pro template.pro $(MODULES) >$@ || \
40            { rm -f $@; exit 1; }
41
42brd: all modules.pro
43        pcbnew `pwd`/modules.brd
44
45include ../common/Makefile.title
46
47catalog catalog.pdf: HIERARCHY $(MODULES:%=%.fpd)
48        $(MAKE) title.ps
49        genkicat -F -p $(MODULES:%=-l %.fpd) -t title.ps \
50          HIERARCHY DESCR >catalog.pdf || \
51          { rm -f catalog.pdf; exit 1; }
52
53view: catalog.pdf
54        $${DSV_PDFVIEWER:-xpdf} catalog.pdf
55
56upload: catalog.pdf
57        qippl catalog.pdf tmp/kicad-libs-modules.pdf
58
59missing:
60        ../scripts/missing-in-tree -F $(MODULES:%=-l %.fpd) HIERARCHY
61
62clean:
63        rm -f *~*.fpd
64        rm -f title.ps
65
66spotless: clean
67        rm -f $(MODULES:%=%.mod)
68        rm -f modules.pro
69

Archive Download this file

Branches:
master



interactive