Skip to content

Commit

Permalink
Easy make for linux users
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Iazel committed Aug 10, 2013
1 parent 3d26c0a commit ad4c07a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Expand Up @@ -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

Expand Down

0 comments on commit ad4c07a

Please sign in to comment.