forked from burke/zeus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 1.06 KB
/
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
42
43
44
MAKEFLAGS = -s
default: darwin
all: fmt darwin linux-386 linux-amd64 manpages gem
fmt:
for i in `find . -name '*.go'` ; do echo "go fmt $$i" ; go fmt $$i; done
manpages:
cd man; /usr/bin/env rake
gem: fsevents manpages
mkdir -p rubygem/ext/fsevents-wrapper
cp -r examples rubygem
cp build/fsevents-wrapper rubygem/ext/fsevents-wrapper
cd rubygem; /usr/bin/env rake
fsevents:
cd ext/fsevents ; $(MAKE)
mkdir -p build
cp ext/fsevents/build/Release/fsevents-wrapper build
linux-386: goversion
cd go/cmd/zeus; CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) -o zeus-linux-386
linux-amd64: goversion
cd go/cmd/zeus; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(MAKE) -o zeus-linux-amd64
darwin: goversion fsevents
cd go/cmd/zeus; CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(MAKE) -o zeus-darwin
goversion:
cd go/zeusversion ; /usr/bin/env ruby ./genversion.rb
install: all
gem install rubygem/pkg/*.gem --no-ri --no-rdoc
clean:
cd go/cmd/zeus; $(MAKE) clean
cd man; rake clean
cd ext/fsevents ; $(MAKE) clean
cd rubygem ; rake clean
rm -f go/zeusversion/zeusversion.go