mirror of https://github.com/openXC7/prjxray.git
27 lines
589 B
Makefile
27 lines
589 B
Makefile
|
|
N := 1
|
|
SPECIMENS := $(addprefix specimen_,$(shell seq -f '%03.0f' $(N)))
|
|
SPECIMENS_OK := $(addsuffix /OK,$(SPECIMENS))
|
|
|
|
database: database/clbll database/clblm
|
|
|
|
pushdb: pushdb/clbll pushdb/clblm
|
|
|
|
database/%: $(SPECIMENS_OK)
|
|
../../tools/segmatch -o seg_$(notdir $@).segbits \
|
|
$(addsuffix /segdata_$(notdir $@)_[012].txt,$(SPECIMENS))
|
|
|
|
pushdb/%:
|
|
bash ../../utils/mergedb.sh seg_$(notdir $@).segbits \
|
|
../../database/$(XRAY_DATABASE)/seg_$(notdir $@).segbits
|
|
|
|
$(SPECIMENS_OK):
|
|
bash generate.sh $(subst /OK,,$@)
|
|
touch $@
|
|
|
|
clean:
|
|
rm -rf $(SPECIMENS)
|
|
|
|
.PHONY: database pushdb clean
|
|
|