Skip to content

Commit e404990

Browse files
committed
make on Mac OS X
1 parent 20fcf88 commit e404990

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
go_version = go1.7.linux-amd64
22

3+
ifeq ($(shell uname), Darwin)
4+
go_version = go1.7.darwin-amd64
5+
endif
6+
37
go:
48

59
@echo "\033[1mInstall Go compiler\033[0m"
@@ -8,7 +12,7 @@ go:
812

913
@if [ ! -d env/go ]; then \
1014
cd env && \
11-
wget https://storage.googleapis.com/golang/$(go_version).tar.gz && \
15+
curl -O https://storage.googleapis.com/golang/$(go_version).tar.gz && \
1216
tar -xf ./$(go_version).tar.gz && \
1317
rm ./$(go_version).tar.gz ; \
1418
fi
@@ -30,6 +34,8 @@ build:
3034

3135
@echo "\033[1mdone!\033[0m"
3236

37+
@file bin/postgres-ci-git-hook
38+
3339
install: build
3440

3541
sudo cp bin/postgres-ci-git-hook /usr/bin/postgres-ci-git-hook

0 commit comments

Comments
 (0)