2010-10-17 01:36:02 -03:00
|
|
|
DIST = dk
|
2010-10-17 15:10:55 -03:00
|
|
|
MANU = avx johanson murata panasonic stackpole tdk yageo
|
2010-10-17 01:36:02 -03:00
|
|
|
|
2010-10-17 19:58:59 -03:00
|
|
|
EQU = $(shell ./boom-config equ)
|
|
|
|
INV = $(shell ./boom-config inv)
|
|
|
|
DSC = $(shell ./boom-config dsc)
|
|
|
|
CHR = $(shell ./boom-config chr)
|
2010-10-16 23:59:00 -03:00
|
|
|
|
2010-10-30 19:09:30 -03:00
|
|
|
DIRS = $(DIST:%=dist/%) $(MANU:%=manu/%)
|
|
|
|
|
2010-10-17 19:58:59 -03:00
|
|
|
DB = $(EQU) $(INV) $(DSC) $(CHR)
|
2010-10-16 22:14:59 -03:00
|
|
|
|
|
|
|
|
2010-10-30 19:09:30 -03:00
|
|
|
.PHONY: all db spotless tar count $(DIRS)
|
2010-10-16 08:18:51 -03:00
|
|
|
|
2010-10-17 19:58:59 -03:00
|
|
|
all: boom-config
|
|
|
|
|
2010-10-30 19:09:30 -03:00
|
|
|
db: boom-config $(DIRS)
|
|
|
|
|
|
|
|
$(DIRS):
|
|
|
|
$(MAKE) -C $@
|
|
|
|
|
2010-10-17 19:58:59 -03:00
|
|
|
boom-config: boom-config.in Makefile
|
2010-10-17 20:15:48 -03:00
|
|
|
sed -e 's/##WARN##/*** MACHINE-GENERATED. DO NOT EDIT ! ***/' \
|
|
|
|
-e 's/##DIST##/$(DIST)/;s/##MANU##/$(MANU)/' boom-config.in \
|
2010-10-17 19:58:59 -03:00
|
|
|
>$@ || { rm -f $@; exit 1; }
|
|
|
|
chmod 755 boom-config
|
2010-10-16 08:18:51 -03:00
|
|
|
|
|
|
|
spotless:
|
2010-10-17 19:58:59 -03:00
|
|
|
rm -f boom-config
|
2010-10-16 22:14:59 -03:00
|
|
|
|
|
|
|
tar:
|
2010-10-17 19:58:59 -03:00
|
|
|
tar cfj boom-db.tar.bz2 boom-config $(DB)
|
2010-10-17 16:19:49 -03:00
|
|
|
|
|
|
|
count:
|
|
|
|
perl ./count.pl $(CHR)
|