This commit is contained in:
Josh at WLTechBlog committed 2025-08-12 10:19:13 -05:00
1 parent 70d9ed30de
commit d6209cd34f
16 files changed
+4118

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
.PHONY: all build clean daemon client install
all: build
build: daemon client
daemon:
go build -o cremotedaemon ./daemon/cmd/cremotedaemon
client:
go build -o cremote .
clean:
rm -f cremote cremotedaemon
install: build
@if [ -n "$(GOPATH)" ] && [ -d "$(GOPATH)/bin" ]; then \
echo "Installing to $(GOPATH)/bin/"; \
cp cremote $(GOPATH)/bin/; \
cp cremotedaemon $(GOPATH)/bin/; \
else \
echo "GOPATH not set or $(GOPATH)/bin doesn't exist, installing to ~/.local/bin/"; \
mkdir -p ~/.local/bin; \
cp cremote ~/.local/bin/; \
cp cremotedaemon ~/.local/bin/; \
fi