mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00

git-svn-id: https://weed-fs.googlecode.com/svn/trunk@41 282b0af5-e82d-9cf1-ede4-77906d7719d0
38 lines
918 B
Makefile
38 lines
918 B
Makefile
# Makefile generated by gb: http://go-gb.googlecode.com
|
|
# gb provides configuration-free building and distributing
|
|
|
|
include $(GOROOT)/src/Make.inc
|
|
|
|
TARG=fix_volume_index
|
|
GOFILES=\
|
|
fix_volume_index.go\
|
|
|
|
# gb: this is the local install
|
|
GBROOT=../../../..
|
|
|
|
# gb: compile/link against local install
|
|
GCIMPORTS+= -I $(GBROOT)/_obj
|
|
LDIMPORTS+= -L $(GBROOT)/_obj
|
|
|
|
# gb: compile/link against GOPATH entries
|
|
GOPATHSEP=:
|
|
ifeq ($(GOHOSTOS),windows)
|
|
GOPATHSEP=;
|
|
endif
|
|
GCIMPORTS+=-I $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -I , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
|
|
LDIMPORTS+=-L $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -L , $(GOPATH))/pkg/$(GOOS)_$(GOARCH)
|
|
|
|
# gb: default target is in GBROOT this way
|
|
command:
|
|
|
|
include $(GOROOT)/src/Make.cmd
|
|
|
|
# gb: copy to local install
|
|
$(GBROOT)/bin/$(TARG): $(TARG)
|
|
mkdir -p $(dir $@); cp -f $< $@
|
|
command: $(GBROOT)/bin/$(TARG)
|
|
|
|
# gb: local dependencies
|
|
$(TARG): $(GBROOT)/_obj/storage.a
|
|
|