diff lunalcd2/src/Makefile @ 70:000411b39576

lunalcd2/src/Makefile: generate BOM outputs
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 26 Jun 2021 21:16:48 +0000
parents 907bff95244d
children
line wrap: on
line diff
--- a/lunalcd2/src/Makefile	Sat Jun 26 21:16:08 2021 +0000
+++ b/lunalcd2/src/Makefile	Sat Jun 26 21:16:48 2021 +0000
@@ -1,8 +1,18 @@
 VSRCS=	vsrc/MAX1916.v vsrc/bl_current_sink.v vsrc/board.v \
 	vsrc/current_select.v vsrc/lcd_module.v
+BOMS=	tallied-bom.txt tallied-bom.csv comptab.txt
 NETS=	sverp.unet bound.unet pcb-netlist.txt
 
-all:	${NETS} elements.pcb
+all:	${BOMS} ${NETS} elements.pcb
+
+tallied-bom.txt:	MCL
+	ueda-mkbom -cr > $@
+
+tallied-bom.csv:	MCL
+	ueda-csvbom > $@
+
+comptab.txt:	MCL
+	ueda-shortbom > $@
 
 sverp.unet:	${VSRCS} primitives Makefile
 	ueda-sverp -o $@ ${VSRCS}