forked from RileyInkTheCat/Pacman-ZFS-Hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (16 loc) · 892 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all:
echo 'Run "make install" to install pacman-zfs-updatesnap-hook'
install:
mkdir -p $(DESTDIR)/usr/share/libalpm/{hooks,scripts}
mkdir -p $(DESTDIR)/usr/share/{doc/pacman-zfs-updatesnap-hook,licenses/pacman-zfs-updatesnap-hook}
cp scripts/pacman-zfs-updatesnap $(DESTDIR)/usr/share/libalpm/scripts
cp hooks/01-pacman-zfs-updatesnap.hook $(DESTDIR)/usr/share/libalpm/hooks
chmod 755 $(DESTDIR)/usr/share/libalpm/scripts/pacman-zfs-updatesnap
cp LICENSE $(DESTDIR)/usr/share/licenses/pacman-zfs-updatesnap-hook
cp README.md $(DESTDIR)/usr/share/doc/pacman-zfs-updatesnap-hook
uninstall:
rm -rf $(DESTDIR)/usr/share/doc/pacman-zfs-updatesnap-hook
rm -rf $(DESTDIR)/usr/share/licenses/pacman-zfs-updatesnap-hook
rm -f $(DESTDIR)/usr/share/libalpm/hooks/01-pacman-zfs-updatesnap.hook
rm -f $(DESTDIR)/usr/share/libalpm/scripts/pacman-zfs-updatesnap
.PHONY: install uninstall all