-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (30 loc) · 982 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
all: fmt build
fmt:
go fmt ./...
build: deps
cp -f perl/perl.go perl/perl._go
sed -i.bak 's|$$GOPATH|${GOPATH}/src|g' perl/perl.go
rm perl/perl.go.bak
#FIXME errors ignored so perl.go is restored
-go build .
mv -f perl/perl._go perl/perl.go
test: deps
cp -f perl/perl.go perl/perl._go
sed -i.bak 's|$$GOPATH|${GOPATH}/src|g' perl/perl.go
rm perl/perl.go.bak
#FIXME errors ignored so perl.go is restored
go test ./...
mv -f perl/perl._go perl/perl.go
deps: libperl
libperl: vendor/perl-5.20.1/perl
vendor/perl-5.20.1/perl: vendor/perl-5.20.1/Makefile
cd vendor/perl-5.20.1; make
vendor/perl-5.20.1/Makefile: |vendor/perl-5.20.1
cd vendor/perl-5.20.1; sh ./Configure -de
vendor/perl-5.20.1: vendor/perl-5.20.1.tar.gz
cd vendor; tar -xf perl-5.20.1.tar.gz
vendor/perl-5.20.1.tar.gz: |vendor
wget -O vendor/perl-5.20.1.tar.gz http://www.cpan.org/src/5.0/perl-5.20.1.tar.gz
vendor:
mkdir -p vendor
.PHONY: all fmt test build deps libperl devmode devmode.off