Add config to makefile [skip ci]

This commit is contained in:
Elara 2021-01-08 18:57:18 -08:00
parent bd58eed0a0
commit 07e35af5a7

View File

@ -3,8 +3,12 @@ GOBUILD ?= go build
all: main.go logging.go keyExchange.go keyCrypto.go files.go fileCrypto.go deviceDiscovery.go config.go
$(GOBUILD)
install: opensend
install: opensend opensend.toml
install -Dm755 opensend $(DESTDIR)/usr/bin/opensend
install -Dm644 opensend.toml $(DESTDIR)/etc/opensend.toml
install-macos: opensend
install -m755 opensend $(DESTDIR)/usr/local/bin/opensend
install-macos: opensend opensend.toml
mkdir -p $(DESTDIR)/usr/local/bin
install -m755 opensend $(DESTDIR)/usr/local/bin/opensend
mkdir -p $(DESTDIR)/etc
install -m644 opensend.toml $(DESTDIR)/etc/opensend.toml