Root/modules/Makefile

1MODULES=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 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 mic-ra-dip mini-usb\
11    pads pads-array phonejack pogo \
12    qfn qfp \
13    rca-3-ra rj45 \
14    soic sot23 spacer sot sot-323 ssop stdpass sw-spdt-smt \
15    tactile-sw-spst-ra-dip to tsop tssop5 tswa \
16    usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt usb_a_rcpt_smt \
17    usb_a_rcpt_mid \
18    xlr-plug xlr-socket \
19     xtal-2 xtal-4 \
20    zx62-b-5pa zx62m-b-5p
21
22SHELL = /bin/bash
23
24TITLE_NAME = FOOTPRINTS/MODULES
25TITLE_FILE = kicad-libs-modules.pdf
26
27.SUFFIXES: .fpd .mod
28.PHONY: all brd catalog view upload missing clean spotless
29
30all: $(MODULES:%=%.mod)
31
32.fpd.mod:
33        fped -k $< $@
34
35modules.pro: Makefile
36        ../scripts/modules-pro template.pro $(MODULES) >$@ || \
37            { rm -f $@; exit 1; }
38
39brd: all modules.pro
40        pcbnew `pwd`/modules.brd
41
42include ../common/Makefile.title
43
44catalog catalog.pdf: HIERARCHY $(MODULES:%=%.fpd)
45        $(MAKE) title.ps
46        genkicat -F -p $(MODULES:%=-l %.fpd) -t title.ps \
47          HIERARCHY DESCR >catalog.pdf || \
48          { rm -f catalog.pdf; exit 1; }
49
50view: catalog.pdf
51        $${DSV_PDFVIEWER:-xpdf} catalog.pdf
52
53upload: catalog.pdf
54        qippl catalog.pdf tmp/kicad-libs-modules.pdf
55
56missing:
57        ../scripts/missing-in-tree -F $(MODULES:%=-l %.fpd) HIERARCHY
58
59clean:
60        rm -f *~*.fpd
61        rm -f title.ps
62
63spotless: clean
64        rm -f $(MODULES:%=%.mod)
65        rm -f modules.pro
66

Archive Download this file

Branches:
master



interactive