summaryrefslogtreecommitdiff
path: root/hw/kicad-libs/modules/Makefile
blob: 640d4cb14e531ea484a6d11744bfe1626c3db14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
MODULES=0805-6 1059 8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \
	bat-clip-aa-th bga \
	c-smd c-t-smd \
	dcjack df40 dfn din-5 dip dip4of6 do-214 dvi-recept-ra \
	e-switch320 er-oled-fpc30 eus evqq7 \
        fiducial \
	header he-2row-dip he-shrouded \
	inductor-2p ir \
	lga ledsmd lp2032sm \
	mdip meander-2450MHz memcard8-amp-10100660 memcard8-hirose-dm3cs \
	memcard8-jae-st1w008s4b memcard8-molex-1050270001 \
	mic-ra-dip mini-usb msl0104 \
	pads pads-array phonejack pogo \
	qfn qfp \
	rca-3-ra rev-led rj45 \
	sod soic sot23 spacer sot sot-323 ssop stdpass stqfn20 sw-spdt-smt \
	tact-4-rect-smt tactile-sw-spst-ra-dip to tsop tssop5 tswa \
	usb-a-dual-recept-r usb-a-pcb usb_a_plug_smt usb_a_rcpt_smt \
	usb_a_rcpt_mid \
	vson-powerpad \
	xlr-plug xlr-socket \
 	xtal-2 xtal-4 \
	zx62-b-5pa zx62m-b-5p

SHELL = /bin/bash

TITLE_NAME = FOOTPRINTS/MODULES
TITLE_FILE = kicad-libs-modules.pdf

.SUFFIXES:	.fpd .mod
.PHONY:		all brd catalog view upload missing clean spotless

all:		$(MODULES:%=%.mod)

.fpd.mod:
		fped -k $< $@

modules.pro:	Makefile
		../scripts/modules-pro template.pro $(MODULES) >$@ || \
		    { rm -f $@; exit 1; }

brd:		all modules.pro
		pcbnew `pwd`/modules.brd

include ../common/Makefile.title

catalog catalog.pdf: HIERARCHY $(MODULES:%=%.fpd)
		$(MAKE) title.ps
		genkicat -F -p $(MODULES:%=-l %.fpd) -t title.ps \
		  HIERARCHY DESCR >catalog.pdf || \
		  { rm -f catalog.pdf; exit 1; }

view:		catalog.pdf
		$${DSV_PDFVIEWER:-xpdf} catalog.pdf

upload:		catalog.pdf
		qippl catalog.pdf tmp/kicad-libs-modules.pdf

missing:
		../scripts/missing-in-tree -F $(MODULES:%=-l %.fpd) HIERARCHY

clean:
		rm -f *~*.fpd
		rm -f title.ps

spotless:	clean
		rm -f $(MODULES:%=%.mod)
		rm -f modules.pro