pak/Makefile

16 lines
375 B
Makefile
Raw Permalink 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-05-23 00:25:36 +00:00
sed -i 's/activeManager = "\$PKGMANAGER"/activeManager = "$(PAK_CFG_MGR)"/' pak.toml
install -Dm644 pak.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