2010-10-17 07:36:02 +03:00
|
|
|
DIST = dk
|
2010-10-17 21:10:55 +03:00
|
|
|
MANU = avx johanson murata panasonic stackpole tdk yageo
|
2010-10-17 07:36:02 +03:00
|
|
|
|
2010-10-18 01: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-17 05:59:00 +03:00
|
|
|
|
2010-10-31 01:09:30 +03:00
|
|
|
DIRS = $(DIST:%=dist/%) $(MANU:%=manu/%)
|
|
|
|
|
2010-10-18 01:58:59 +03:00
|
|
|
DB = $(EQU) $(INV) $(DSC) $(CHR)
|
2010-10-17 04:14:59 +03:00
|
|
|
|
|
|
|
|
2010-10-31 01:09:30 +03:00
|
|
|
.PHONY: all db spotless tar count $(DIRS)
|
2010-10-16 14:18:51 +03:00
|
|
|
|
2010-10-18 01:58:59 +03:00
|
|
|
all: boom-config
|
|
|
|
|
2010-10-31 01:09:30 +03:00
|
|
|
db: boom-config $(DIRS)
|
|
|
|
|
|
|
|
$(DIRS):
|
|
|
|
$(MAKE) -C $@
|
|
|
|
|
2010-10-18 01:58:59 +03:00
|
|
|
boom-config: boom-config.in Makefile
|
2010-10-18 02: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-18 01:58:59 +03:00
|
|
|
>$@ || { rm -f $@; exit 1; }
|
|
|
|
chmod 755 boom-config
|
2010-10-16 14:18:51 +03:00
|
|
|
|
|
|
|
spotless:
|
2010-10-18 01:58:59 +03:00
|
|
|
rm -f boom-config
|
2010-10-17 04:14:59 +03:00
|
|
|
|
|
|
|
tar:
|
2010-10-18 01:58:59 +03:00
|
|
|
tar cfj boom-db.tar.bz2 boom-config $(DB)
|
2010-10-17 22:19:49 +03:00
|
|
|
|
|
|
|
count:
|
|
|
|
perl ./count.pl $(CHR)
|