From 07e35af5a76b60a836fccb23e76ffe9784aac4af Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Fri, 8 Jan 2021 18:57:18 -0800 Subject: [PATCH] Add config to makefile [skip ci] --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c5829f9..99c7ccf 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file +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 \ No newline at end of file