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

Archive Download this file

Branches:
master



interactive