From ad4c07a4b6b2b779e8a6a7f53c85948818ac5f11 Mon Sep 17 00:00:00 2001 From: Iazel Date: Sat, 10 Aug 2013 15:39:39 +0200 Subject: [PATCH] Easy `make` for linux users Building this gem in linux can be a little tricky cause the lack of `xbuildtool`, but we can now run `make linux` and all go smoothly. Obviously, this only compile the binary for the current user's architecture and is meant for personal use only. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index c4aaf7de..a77afd23 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,16 @@ fsevents: mkdir -p build cp ext/fsevents/build/Release/fsevents-wrapper build +ifeq ($(uname -i), 'x86_64') + linux_v = 'linux-amd64' +else + linux_v = 'linux-386' +endif +linux: fmt manpages $(linux_v) + mkdir rubygem/man + cp -R man/build rubygem/man/ + cd rubygem ; /usr/bin/env rake + linux-386: goversion cd go/cmd/zeus; CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) -o zeus-linux-386