Commit Diff
Diff:
8f8ee0bed9538ba1eea92cbd05be7cd58ed21c2a
5240c870c1cd9dd54cf41b0d2c942f288f997991
Commit:
5240c870c1cd9dd54cf41b0d2c942f288f997991
Tree:
09fb25b516114a0967800c14da1c5c091f38b172
Author:
Fred. Galusik <dev1@galusik.xyz>
Committer:
Fred. Galusik <dev1@galusik.xyz>
Date:
Sun May 15 12:58:42 2016 UTC
Message:
add Makefile for easier install/uninstall
blob - /dev/null
blob + 9bd441a5d63f63718d570ece1709b7be328100d0 (mode 644)
--- /dev/null
+++ Makefile
@@ -0,0 +1,26 @@
+# snaps - play with OpenBSD snapshots
+# See LICENSE for copyright
+
+VERSION=0.6
+
+PREFIX=/usr/local
+
+tarball:
+ @echo creating tarball
+ @mkdir -p snaps-${VERSION}
+ @cp -R LICENSE Makefile README.md snaps snaps-${VERSION}
+ @tar czvf snaps-${VERSION}.tar.gz snaps-${VERSION}
+ @rm -rf snaps-${VERSION}
+
+install:
+ @echo installing executable file to ${DESTDIR}${PREFIX}/bin
+ @mkdir -p ${DESTDIR}${PREFIX}/bin
+ @cp -f snaps ${DESTDIR}${PREFIX}/bin
+ @chmod 755 ${DESTDIR}${PREFIX}/bin/snaps
+
+uninstall:
+ @echo removing executable file from ${DESTDIR}${PREFIX}/bin
+ @rm -f ${DESTDIR}${PREFIX}/bin/snaps
+
+.PHONY: tarball install uninstall
+
Frédéric Galusik