Skip to content

Commit

Permalink
Adds a Makefile to replace the Rakefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellegous committed Jan 31, 2015
1 parent 6ef3168 commit eefee81
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
BINS = bin/houndd bin/hound
HOST = localhost:6080

TESTS = ansi \
code.google.com/p/codesearch/index \
code.google.com/p/codesearch/regexp \
hound/client \
hound/index

ALL: $(BINS)

bin/houndd : $(wildcard src/hound/**/*)
GOPATH=`pwd` go build -o $@ src/hound/cmds/houndd/main.go

bin/hound : $(wildcard src/hound/**/*)
GOPATH=`pwd` go build -o $@ \
-ldflags "-X main.defaultHost $(HOST)" \
src/hound/cmds/hound/*.go

test:
GOPATH=`pwd` go test $(TESTS)

clean:
rm -f $(BINS)

0 comments on commit eefee81

Please sign in to comment.