Add AdvMakefile and .gitm.toml

This commit is contained in:
2021-05-22 17:25:36 -07:00
parent 98dcb1532e
commit 47eeacf1a5
5 changed files with 50 additions and 3 deletions

View File

@@ -6,8 +6,8 @@ all: main.go
install: PAK_CFG_MGR ?= apt
install: pak.toml pak
install -Dm755 pak $(DESTDIR)/usr/bin/pak
sed 's/activeManager = ""/activeManager = "$(PAK_CFG_MGR)"/' pak.toml > pak-new.toml
install -Dm644 pak-new.toml $(DESTDIR)/etc/pak.toml
sed -i 's/activeManager = "\$PKGMANAGER"/activeManager = "$(PAK_CFG_MGR)"/' pak.toml
install -Dm644 pak.toml $(DESTDIR)/etc/pak.toml
installbinonly: pak
install -Dm755 pak $(DESTDIR)/usr/bin/pak