Skip to content

Commit

Permalink
hack: copy -jN make option into prove invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
mauke committed Aug 27, 2017
1 parent 59e83ba commit d131d68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -83,7 +84,8 @@ build-test: $(TESTS:.c=.t)

.PHONY: test
test: build-test
$(PROVE)
@echo $(PROVE) $(PROVEFLAGS)
@$(PROVE) $(PROVEFLAGS)

.PHONY: clean
clean:
Expand Down

0 comments on commit d131d68

Please sign in to comment.