diff --git a/Makefile b/Makefile index 9c56304..d3096d2 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,7 @@ POD2MAN=pod2man POD2MAN_OPTS=-c "$(PACKAGE)" -s3 -r "$(PACKAGE)-$(PKG_VERSION)" PROVE=prove +PROVEFLAGS=`perl -we 'print $$ENV{MAKEFLAGS} =~ /(-j *\d+)/'` ifeq ($(DEBUG),1) CFLAGS_DEBUG=-ggdb -DDEBUG @@ -83,7 +84,8 @@ build-test: $(TESTS:.c=.t) .PHONY: test test: build-test - $(PROVE) + @echo $(PROVE) $(PROVEFLAGS) + @$(PROVE) $(PROVEFLAGS) .PHONY: clean clean: