mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 23:42:20 +08:00
Refactor Makefile.
Move the go commands that should run under cmd/ipfs in the Makefile in cmd/ipfs rather than doing a "cd cmd/ipfs && go ..." in the root Makefile. The "cd cmd/ipfs && go ..." lines causes problems with GNU Emacs's compilation mode. With the current setup Emacs is unable to jump to the location of the error outputted by go compiler as it can not find the source file. The problem is that the embedded "cd" command causes Emacs's compilation mode to lose track of the current directory and thus attempts to look for the source file in the wrong directory. License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
@ -1,7 +1,19 @@
|
||||
COMMIT := $(shell git rev-parse --short HEAD)
|
||||
ldflags = "-X "github.com/ipfs/go-ipfs/repo/config".CurrentCommit=$(COMMIT)"
|
||||
|
||||
all: install
|
||||
|
||||
build:
|
||||
cd ../../ && make build
|
||||
|
||||
install:
|
||||
cd ../../ && make install
|
||||
go install -ldflags=$(ldflags)
|
||||
|
||||
build:
|
||||
go build -i -ldflags=$(ldflags)
|
||||
|
||||
nofuse:
|
||||
go install -tags nofuse -ldflags=$(ldflags)
|
||||
|
||||
clean:
|
||||
go clean -ldflags=$(ldflags)
|
||||
|
||||
uninstall:
|
||||
go clean -i -ldflags=$(ldflags)
|
||||
|
Reference in New Issue
Block a user