masak/ufo — pull request #5 by Cynede (2013-03-12 12:04:12+00:00)
Title: $DESTDIR for ufo

formed makefile

``` makefile
.PHONY: all build test install clean distclean purge

PERL6 = perl6
DESTDIR=
PREFIX = /usr/lib/parrot/5.1.0/languages/perl6/site
BLIB = blib
P6LIB = $(PWD)/$(BLIB)/lib:$(PWD)/lib:$(PERL6LIB)
CP = cp -p
MKDIR = mkdir -p

SCRIPTS= bin/ignore
BLIB_PIRS =

all build: $(BLIB_PIRS)

test: build
env PERL6LIB=$(P6LIB) prove -e '$(PERL6)' -r t/

loudtest: build
env PERL6LIB=$(P6LIB) prove -ve '$(PERL6)' -r t/

timetest: build
env PERL6LIB=$(P6LIB) PERL6_TEST_TIMES=1 prove -ve '$(PERL6)' -r t/

install: $(BLIB_PIRS)
$(MKDIR) $(DESTDIR)$(PREFIX)/bin
$(CP) $(SCRIPTS) $(DESTDIR)$(PREFIX)/bin

clean:
rm -fr $(BLIB)

distclean purge: clean
rm -r Makefile
```