Help language development. Donate to The Perl Foundation

Draw2D::Furniture cpan:TBROWDER last updated on 2020-03-20

Makefile
RAKU     := raku
LIBPATH  := lib

# set below to 1 for no effect, 1 for debugging messages
DEBUG := MyMODULE_DEBUG=0

# set below to 0 for no effect, 1 to die on first failure
EARLYFAIL := PERL6_TEST_DIE_ON_FAIL=0

.PHONY: test bad good clean

default: test

TESTS     := t/*.t
BADTESTS  := bad/*.t
GOODTESTS := good/*.t

# the original test suite (i.e., 'make test')
test:
	for f in $(TESTS) ; do \
	    $(DEBUG) $(EARLYFAIL) PERL6LIB=$(LIBPATH) prove -v --exec=$(RAKU) $$f ; \
	done

bad:
	for f in $(BADTESTS) ; do \
	    $(DEBUG) $(EARLYFAIL) PERL6LIB=$(LIBPATH) prove -v --exec=$(RAKU) $$f ; \
	done

good:
	for f in $(GOODTESTS) ; do \
	    $(DEBUG) $(EARLYFAIL) PERL6LIB=$(LIBPATH) prove -v --exec=$(RAKU) $$f ; \
	done

doc:
	PERL6LIB=$(LIBPATH) $(RAKU) -Ilib bin/draw2d-output t/data/furniture-input.txt

doc2:
	PERL6LIB=$(LIBPATH) $(RAKU) -Ilib bin/draw2d-output t/data/furniture-input.txt debug

clean:
	@rm furniture-drawings.* furniture-list.*