From 03ca12f4292f39bbffabce6e1e173ab003501c4a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 17 Apr 2012 21:29:53 -0300 Subject: [PATCH] components/Makefile: new targets "catalog", "clean", and "spotless" "catalog" generates a catalog using genex. --- components/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/components/Makefile b/components/Makefile index 70172cd..4962b71 100644 --- a/components/Makefile +++ b/components/Makefile @@ -4,7 +4,7 @@ # Note that we don't have the concept of a "library of everything" so far. # -.PHONY: all sch +.PHONY: all sch catalog clean spotless all: sch @@ -14,5 +14,18 @@ all: sch sch: eeschema `pwd`/components.sch +DESCR-dcm: *.dcm + ../scripts/dcm2desc -L . >$@ || { rm -f $@; exit 1; } + +catalog: DESCR-dcm + genex -p -L . EXPAND DESCR-dcm >catalog.pdf || \ + { rm -f catalog.pdf; exit 1; } + #loe: # ./mkloe + +clean: + rm -f DESCR-dcm + +spotless: clean + rm -f catalog.pdf