This commit is contained in:
2023-06-08 20:43:48 +00:00
parent 9e97f9842b
commit 9acafceb8f
13 changed files with 592 additions and 157 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
SUBDIRS := client core server
SRCS := $(wildcard *.go $(foreach fd, $(SUBDIRS), $(fd)/*.go))
TARGETS := overpush overpushd
all: proto $(TARGETS)
go build ./...
.PHONY: overpushd
overpushd: $(SRCS) cmd/overpushd/main.go
go build ./cmd/overpushd
.PHONY: overpush
overpush: $(SRCS) cmd/overpush/main.go
go build ./cmd/overpush
.PHONY: proto
proto:
( cd proto && make )
print-%: ; @echo '$(subst ','\'',$*=$($*))'