Debian Codegraph @

tests/Makefile

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