Root/boom/Makefile

1DIST = dk
2MANU = avx johanson murata panasonic stackpole tdk yageo
3
4EQU = $(shell ./boom-config equ)
5INV = $(shell ./boom-config inv)
6DSC = $(shell ./boom-config dsc)
7CHR = $(shell ./boom-config chr)
8
9DIRS = $(DIST:%=dist/%) $(MANU:%=manu/%)
10
11DB = $(EQU) $(INV) $(DSC) $(CHR)
12
13
14.PHONY: all db spotless tar count $(DIRS)
15
16all: boom-config
17
18db: boom-config $(DIRS)
19
20$(DIRS):
21        $(MAKE) -C $@
22
23boom-config: boom-config.in Makefile
24        sed -e 's/##WARN##/*** MACHINE-GENERATED. DO NOT EDIT ! ***/' \
25          -e 's/##DIST##/$(DIST)/;s/##MANU##/$(MANU)/' boom-config.in \
26          >$@ || { rm -f $@; exit 1; }
27        chmod 755 boom-config
28
29spotless:
30        rm -f boom-config
31
32tar:
33        tar cfj boom-db.tar.bz2 boom-config $(DB)
34
35count:
36        perl ./count.pl $(CHR)
37

Archive Download this file

Branches:
master



interactive