1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
CWD := $(shell pwd)
SWITCH = $(CWD)/../bin/switch-BEDOPS-binary-type
ALL_BINARY_TYPES = typical megarow float128
SHELL := /bin/bash
all: tests
.PHONY: tests bedops starch conversion
tests:
$(MAKE) bedops -C $(CWD)/tests
$(MAKE) starch -C $(CWD)/tests
$(MAKE) conversion -C $(CWD)/tests
$(MAKE) clean -C $(CWD)/tests
bedops:
for btype in ${ALL_BINARY_TYPES}; do \
(cd $(CWD)/../bin && $(SWITCH) --$$btype . && cd $(CWD)) || exit $$?; \
$(MAKE) all -C $(CWD)/bedops BUILDTYPE=$$btype; \
done
starch:
for btype in ${ALL_BINARY_TYPES}; do \
(cd $(CWD)/../bin && $(SWITCH) --$$btype . && cd $(CWD)) || exit $$?; \
$(MAKE) all -C $(CWD)/starch BUILDTYPE=$$btype; \
done
conversion:
for btype in ${ALL_BINARY_TYPES}; do \
(cd $(CWD)/../bin && $(SWITCH) --$$btype . && cd $(CWD)) || exit $$?; \
$(MAKE) all -C $(CWD)/conversion BUILDTYPE=$$btype; \
done
clean:
(cd $(CWD)/../bin && $(SWITCH) --typical . && cd $(CWD)) || exit $$?
|