pond: Make target

This commit is contained in:
Łukasz Magiera 2019-07-24 23:45:01 +02:00
parent fa44db3eb8
commit cc3f8a13ce
16 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
/lotus
/lotus-storage-miner
/pond
**/*.h
**/*.a
**/*.pc

View File

@ -47,6 +47,11 @@ build: $(BUILD_DEPS)
go build -o lotus-storage-miner ./cmd/lotus-storage-miner
.PHONY: build
pond: build
go build -o pond ./lotuspond
(cd lotuspond/front && npm run build)
.PHONY: pond
clean:
rm -rf $(CLEAN)
-$(MAKE) -C $(BLS_PATH) clean

View File

@ -108,7 +108,7 @@ func main() {
rpcServer := jsonrpc.NewServer()
rpcServer.Register("Pond", &api{running: map[int32]runningNode{}})
http.Handle("/", http.FileServer(http.Dir("testbed/front/build")))
http.Handle("/", http.FileServer(http.Dir("lotuspond/front/build")))
http.Handle("/rpc/v0", rpcServer)
fmt.Printf("Listening on http://%s\n", listenAddr)