# Copyright (c) 2011-2013 Index Data ApS. http://indexdata.com

# number of parallel tests
NCPU=4

SUBDIRS = bin

.PHONY: all install $(SUBDIRS)

all: help

$(SUBDIRS):
	$(ENV_DEF) $(MAKE) -C $@

clean perltidy:
	${MAKE} -C ./bin $@

install: true

true:
	@true

check test: test-pl test-sh

test-pl:
	prove t/*.t
test-sh:
	ls t/[0-9]*.sh | xargs -n1 -P${NCPU} ./t/wrapper-sh 

help:
	@echo "make [ help | clean | check ]"

