Root/
| 1 | DIST = dk |
| 2 | MANU = avx johanson murata panasonic stackpole tdk yageo |
| 3 | |
| 4 | EQU = $(shell ./boom-config equ) |
| 5 | INV = $(shell ./boom-config inv) |
| 6 | DSC = $(shell ./boom-config dsc) |
| 7 | CHR = $(shell ./boom-config chr) |
| 8 | |
| 9 | DIRS = $(DIST:%=dist/%) $(MANU:%=manu/%) |
| 10 | |
| 11 | DB = $(EQU) $(INV) $(DSC) $(CHR) |
| 12 | |
| 13 | |
| 14 | .PHONY: all db spotless tar count $(DIRS) |
| 15 | |
| 16 | all: boom-config |
| 17 | |
| 18 | db: boom-config $(DIRS) |
| 19 | |
| 20 | $(DIRS): |
| 21 | $(MAKE) -C $@ |
| 22 | |
| 23 | boom-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 | |
| 29 | spotless: |
| 30 | rm -f boom-config |
| 31 | |
| 32 | tar: |
| 33 | tar cfj boom-db.tar.bz2 boom-config $(DB) |
| 34 | |
| 35 | count: |
| 36 | perl ./count.pl $(CHR) |
| 37 |
Branches:
master
