30 lines
503 B
Makefile
30 lines
503 B
Makefile
|
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
|