lotus/Makefile

42 lines
947 B
Makefile
Raw Normal View History

all: build
.PHONY: all
BUILD_DEPS:=lib/bls-signatures/include/libbls_signatures.h
BUILD_DEPS+=lib/sectorbuilder/include/sector_builder_ffi.h
# git modules that need to be loaded
MODULES:=
lib/bls-signatures/include/libbls_signatures.h: lib/bls-signatures/bls-signatures
2019-07-08 11:00:52 +00:00
./scripts/install-bls-signatures.sh
@touch $@
MODULES+=lib/bls-signatures/bls-signatures
2019-07-08 11:00:52 +00:00
2019-07-16 15:14:16 +00:00
lib/sectorbuilder/include/sector_builder_ffi.h: lib/sectorbuilder lib/sectorbuilder/rust-fil-sector-builder
2019-07-17 11:15:48 +00:00
./lib/sectorbuilder/build.sh
@touch $@
MODULES+=lib/sectorbuilder
MODULES+=lib/sectorbuilder/rust-fil-sector-builder
$(MODULES): build/.update-modules ;
2019-07-16 15:18:03 +00:00
# dummy file that marks the last time modules were updated
build/.update-modules:
git submodule update --init --recursive
touch $@
2019-07-17 11:17:55 +00:00
deps: $(BUILD_DEPS)
.PHONY: deps
2019-07-08 11:00:52 +00:00
build: $(BUILD_DEPS)
2019-07-08 11:00:52 +00:00
go build -o lotus ./cmd/lotus
.PHONY: build
2019-07-08 11:00:52 +00:00
dist-clean:
git clean -xdff
git submodule deinit --all -f
.PHONY: dist-clean