This repository has been archived on 2021-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
2020-12-05 07:44:19 +00:00
|
|
|
GOBUILD ?= go build
|
|
|
|
|
2021-07-08 20:11:41 +00:00
|
|
|
all: cmd/opensend/main.go
|
|
|
|
$(GOBUILD) ./cmd/opensend
|
2020-12-05 07:44:19 +00:00
|
|
|
|
2021-01-09 02:57:18 +00:00
|
|
|
install: opensend opensend.toml
|
2020-12-05 08:19:03 +00:00
|
|
|
install -Dm755 opensend $(DESTDIR)/usr/bin/opensend
|
2021-01-09 02:57:18 +00:00
|
|
|
install -Dm644 opensend.toml $(DESTDIR)/etc/opensend.toml
|
2020-12-05 08:19:03 +00:00
|
|
|
|
2021-01-09 02:57:18 +00:00
|
|
|
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
|