2011-07-24 05:26:05 -03:00
|
|
|
#
|
|
|
|
# From http://svn.openmoko.org/trunk/gta02-core/components/
|
|
|
|
#
|
|
|
|
# Note that we don't have the concept of a "library of everything" so far.
|
|
|
|
#
|
|
|
|
|
2012-12-21 00:41:19 -03:00
|
|
|
SHELL = /bin/bash
|
|
|
|
|
2012-06-09 22:28:58 -03:00
|
|
|
GEN = gencon.lib
|
|
|
|
|
2012-12-21 00:41:19 -03:00
|
|
|
TITLE_NAME = SYMBOLS/COMPONENTS
|
|
|
|
TITLE_FILE = kicad-libs-components.pdf
|
|
|
|
|
2012-04-18 18:47:38 -03:00
|
|
|
.PHONY: all sch catalog view upload missing clean spotless
|
2011-07-24 05:26:05 -03:00
|
|
|
|
2012-06-11 07:10:45 -03:00
|
|
|
all: $(GEN)
|
2011-07-24 05:26:05 -03:00
|
|
|
|
|
|
|
# @echo "make what ? targets: sch loe"
|
|
|
|
# @exit 1
|
|
|
|
|
2012-06-09 22:28:58 -03:00
|
|
|
sch: $(GEN)
|
2011-07-24 05:26:05 -03:00
|
|
|
eeschema `pwd`/components.sch
|
|
|
|
|
2012-04-17 21:29:53 -03:00
|
|
|
DESCR-dcm: *.dcm
|
|
|
|
../scripts/dcm2desc -L . >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
2012-12-21 20:27:39 -03:00
|
|
|
include ../common/Makefile.title
|
|
|
|
|
2012-12-21 20:25:35 -03:00
|
|
|
catalog catalog.pdf: HIERARCHY DESCR-dcm *.lib $(GEN)
|
|
|
|
$(MAKE) title.ps
|
2012-12-21 00:41:19 -03:00
|
|
|
genkicat -p -L . -t title.ps HIERARCHY DESCR-dcm \
|
|
|
|
>catalog.pdf || \
|
2012-04-17 21:29:53 -03:00
|
|
|
{ rm -f catalog.pdf; exit 1; }
|
|
|
|
|
2012-04-18 18:47:38 -03:00
|
|
|
view: catalog.pdf
|
2012-04-17 22:28:13 -03:00
|
|
|
$${DSV_PDFVIEWER:-xpdf} catalog.pdf
|
|
|
|
|
2012-04-18 18:47:38 -03:00
|
|
|
upload: catalog.pdf
|
|
|
|
qippl catalog.pdf tmp/kicad-libs-components.pdf
|
|
|
|
|
2012-06-09 22:28:58 -03:00
|
|
|
missing: $(GEN)
|
2012-08-03 21:01:37 -03:00
|
|
|
../scripts/missing-in-tree -L . HIERARCHY
|
2014-01-05 13:56:26 -03:00
|
|
|
../scripts/missing-in-tree -Q $(GEN:%=-x %) -L . components.pro
|
2012-04-17 22:19:40 -03:00
|
|
|
|
2012-06-09 22:28:58 -03:00
|
|
|
%.lib: %.pl
|
|
|
|
./$< >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
2011-07-24 05:26:05 -03:00
|
|
|
#loe:
|
|
|
|
# ./mkloe
|
2012-04-17 21:29:53 -03:00
|
|
|
|
|
|
|
clean:
|
2012-12-21 00:41:19 -03:00
|
|
|
rm -f DESCR-dcm title.ps
|
2012-04-17 21:29:53 -03:00
|
|
|
|
|
|
|
spotless: clean
|
2012-06-09 22:28:58 -03:00
|
|
|
rm -f catalog.pdf $(GEN)
|