Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Actually create Makefile, for some reason earlier it didnt commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyInkTheCat committed Apr 3, 2022
1 parent 641fd5c commit 9ecc3d9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
all:
echo 'Run "make install" to install Pacman-ZFS-Hook'

install:
mkdir -p $(DESTDIR)/usr/share/libalpm/{hooks,scripts}
mkdir -p $(DESTDIR)/usr/share/{doc/pacman-zfs-hook,licenses/pacman-zfs-hook}
cp scripts/zfs-snap-pac $(DESTDIR)/usr/share/libalpm/scripts
cp hooks/01-zfs-snap-pac.hook $(DESTDIR)/usr/share/libalpm/hooks
chmod 755 $(DESTDIR)/usr/share/libalpm/scripts/zfs-snap-pac
cp LICENSE $(DESTDIR)/usr/share/licenses/pacman-zfs-hook
cp README.md $(DESTDIR)/usr/share/doc/pacman-zfs-hook

uninstall:
rm -rf $(DESTDIR)/usr/share/doc/pacman-zfs-hook
rm -rf $(DESTDIR)/usr/share/licenses/pacman-zfs-hook
rm -f $(DESTDIR)/usr/share/libalpm/hooks/01-zfs-snap-pac.hook
rm -f $(DESTDIR)/usr/share/libalpm/scripts/zfs-snap-pac

.PHONY: install uninstall all

0 comments on commit 9ecc3d9

Please sign in to comment.