Add Makefile
This commit is contained in:
parent
c19a254498
commit
2ef195583f
29
Makefile
Normal file
29
Makefile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
all: build
|
||||||
|
.PHONY: all
|
||||||
|
|
||||||
|
SUBMODULES=
|
||||||
|
|
||||||
|
FFI_PATH:=./extern/filecoin-ffi/
|
||||||
|
FFI_DEPS:=.install-filcrypto
|
||||||
|
FFI_DEPS:=$(addprefix $(FFI_PATH),$(FFI_DEPS))
|
||||||
|
|
||||||
|
$(FFI_DEPS): .filecoin-build ;
|
||||||
|
|
||||||
|
.filecoin-build: $(FFI_PATH)
|
||||||
|
$(MAKE) -C $(FFI_PATH) $(FFI_DEPS:$(FFI_PATH)%=%)
|
||||||
|
@touch $@
|
||||||
|
|
||||||
|
.update-modules:
|
||||||
|
git submodule update --init --recursive
|
||||||
|
@touch $@
|
||||||
|
|
||||||
|
test: .update-modules .filecoin-build
|
||||||
|
go test -v ./...
|
||||||
|
.PHONY: test
|
||||||
|
SUBMODULES+=test
|
||||||
|
|
||||||
|
build: $(SUBMODULES)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f .filecoin-build
|
||||||
|
rm -f .update-modules
|
Loading…
Reference in New Issue
Block a user