pak/Makefile

16 lines
379 B
Makefile
Raw Normal View History

GOBUILD ?= go build
2021-01-04 07:49:32 +00:00
all: main.go
2020-11-26 04:40:59 +00:00
$(GOBUILD)
2020-02-18 05:02:14 +00:00
2021-01-04 07:49:32 +00:00
install: PAK_CFG_MGR ?= apt
install: pak.toml pak
2020-02-18 06:39:10 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2021-01-04 07:49:32 +00:00
sed 's/activeManager = ""/activeManager = "$(PAK_CFG_MGR)"/' pak.toml > pak-new.toml
install -Dm644 pak-new.toml $(DESTDIR)/etc/pak.toml
2020-02-18 05:02:14 +00:00
2021-01-04 07:49:32 +00:00
installbinonly: pak
2020-09-28 04:50:25 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-10-26 08:12:37 +00:00
2021-01-04 07:49:32 +00:00
.PHONY: all install installbinonly