pak/Makefile

88 lines
4.2 KiB
Makefile
Raw Normal View History

GOBUILD ?= go build
2020-11-26 04:40:59 +00:00
pak: main.go
$(GOBUILD)
2020-11-26 04:41:17 +00:00
2020-02-18 05:02:14 +00:00
installbinonly: pak
2020-02-18 06:39:10 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-11-28 02:26:42 +00:00
mkdir -p $(DESTDIR)/etc/pak.d
2020-02-18 05:02:14 +00:00
2020-11-28 02:26:42 +00:00
aptinstall: plugins/apt/pak.cfg pak
install -Dm644 plugins/apt/pak.cfg $(DESTDIR)/etc/pak.cfg
mkdir -p $(DESTDIR)/etc/pak.d
install -Dm644 plugins/snap/pak.cfg $(DESTDIR)/etc/pak.d/snap.cfg
install -Dm644 plugins/yay/pak.cfg $(DESTDIR)/etc/pak.d/yay.cfg
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.d/zypper.cfg
install -Dm644 plugins/pacman/pak.cfg $(DESTDIR)/etc/pak.d/pacman.cfg
install -Dm644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.d/brew.cfg
install -Dm644 plugins/aptitude/pak.cfg $(DESTDIR)/etc/pak.d/aptitude.cfg
2020-02-18 06:39:10 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-02-18 05:02:14 +00:00
snapinstall: plugins/snap/pak.cfg pak
2020-02-18 06:39:10 +00:00
install -Dm644 plugins/snap/pak.cfg $(DESTDIR)/etc/pak.cfg
2020-11-28 02:26:42 +00:00
mkdir -p $(DESTDIR)/etc/pak.d
install -Dm644 plugins/apt/pak.cfg $(DESTDIR)/etc/pak.d/apt.cfg
install -Dm644 plugins/yay/pak.cfg $(DESTDIR)/etc/pak.d/yay.cfg
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.d/zypper.cfg
install -Dm644 plugins/pacman/pak.cfg $(DESTDIR)/etc/pak.d/pacman.cfg
install -Dm644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.d/brew.cfg
install -Dm644 plugins/aptitude/pak.cfg $(DESTDIR)/etc/pak.d/aptitude.cfg
2020-02-18 06:39:10 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-02-18 05:02:14 +00:00
yayinstall: plugins/yay/pak.cfg pak
2020-02-18 06:39:10 +00:00
install -Dm644 plugins/yay/pak.cfg $(DESTDIR)/etc/pak.cfg
2020-11-28 02:26:42 +00:00
mkdir -p $(DESTDIR)/etc/pak.d
install -Dm644 plugins/snap/pak.cfg $(DESTDIR)/etc/pak.d/snap.cfg
install -Dm644 plugins/apt/pak.cfg $(DESTDIR)/etc/pak.d/apt.cfg
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.d/zypper.cfg
install -Dm644 plugins/pacman/pak.cfg $(DESTDIR)/etc/pak.d/pacman.cfg
install -Dm644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.d/brew.cfg
install -Dm644 plugins/aptitude/pak.cfg $(DESTDIR)/etc/pak.d/aptitude.cfg
2020-02-18 06:39:10 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-02-18 05:02:14 +00:00
pacinstall: plugins/pacman/pak.cfg pak
2020-02-18 06:39:10 +00:00
install -Dm644 plugins/pacman/pak.cfg $(DESTDIR)/etc/pak.cfg
2020-11-28 02:26:42 +00:00
mkdir -p $(DESTDIR)/etc/pak.d
install -Dm644 plugins/snap/pak.cfg $(DESTDIR)/etc/pak.d/snap.cfg
install -Dm644 plugins/yay/pak.cfg $(DESTDIR)/etc/pak.d/yay.cfg
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.d/zypper.cfg
install -Dm644 plugins/apt/pak.cfg $(DESTDIR)/etc/pak.d/apt.cfg
install -Dm644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.d/brew.cfg
install -Dm644 plugins/aptitude/pak.cfg $(DESTDIR)/etc/pak.d/aptitude.cfg
2020-02-18 06:39:10 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-02-18 05:02:14 +00:00
aptitude: plugins/aptitude/pak.cfg pak
2020-02-18 06:39:10 +00:00
install -Dm644 plugins/aptitude/pak.cfg $(DESTDIR)/etc/pak.cfg
2020-11-28 02:26:42 +00:00
mkdir -p $(DESTDIR)/etc/pak.d
install -Dm644 plugins/snap/pak.cfg $(DESTDIR)/etc/pak.d/snap.cfg
install -Dm644 plugins/yay/pak.cfg $(DESTDIR)/etc/pak.d/yay.cfg
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.d/zypper.cfg
install -Dm644 plugins/pacman/pak.cfg $(DESTDIR)/etc/pak.d/pacman.cfg
install -Dm644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.d/brew.cfg
install -Dm644 plugins/apt/pak.cfg $(DESTDIR)/etc/pak.d/apt.cfg
2020-02-18 06:39:10 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
brewinstall: plugins/brew/pak.cfg pak
2020-11-28 02:26:42 +00:00
install -Dm644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.cfg
mkdir -p $(DESTDIR)/etc/pak.d
install -Dm644 plugins/snap/pak.cfg $(DESTDIR)/etc/pak.d/snap.cfg
install -Dm644 plugins/yay/pak.cfg $(DESTDIR)/etc/pak.d/yay.cfg
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.d/zypper.cfg
install -Dm644 plugins/pacman/pak.cfg $(DESTDIR)/etc/pak.d/pacman.cfg
install -Dm644 plugins/apt/pak.cfg $(DESTDIR)/etc/pak.d/apt.cfg
install -Dm644 plugins/aptitude/pak.cfg $(DESTDIR)/etc/pak.d/aptitude.cfg
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-09-28 04:50:25 +00:00
zyppinstall: plugins/zypper/pak.cfg pak
install -Dm644 plugins/zypper/pak.cfg $(DESTDIR)/etc/pak.cfg
2020-11-28 02:26:42 +00:00
mkdir -p $(DESTDIR)/etc/pak.d
install -Dm644 plugins/snap/pak.cfg $(DESTDIR)/etc/pak.d/snap.cfg
install -Dm644 plugins/yay/pak.cfg $(DESTDIR)/etc/pak.d/yay.cfg
install -Dm644 plugins/apt/pak.cfg $(DESTDIR)/etc/pak.d/apt.cfg
install -Dm644 plugins/pacman/pak.cfg $(DESTDIR)/etc/pak.d/pacman.cfg
install -Dm644 plugins/brew/pak.cfg $(DESTDIR)/etc/pak.d/brew.cfg
install -Dm644 plugins/aptitude/pak.cfg $(DESTDIR)/etc/pak.d/aptitude.cfg
2020-09-28 04:50:25 +00:00
install -Dm755 pak $(DESTDIR)/usr/bin/pak
2020-10-26 08:12:37 +00:00
.PHONY: pak $(MAKECMDGOALS)