aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2024-02-02 16:19:19 +0100
committerJán Sučan <jan@jansucan.com>2024-02-02 16:38:53 +0100
commit394e79abed3b8a3675c9efb3d448f727c2db45d6 (patch)
tree51db726cdb7922cebb641ea2b084e166c570a91b /Makefile
parent6bef1c8b6da3404693e2aea473824a6f33cdbde6 (diff)
makefile: Add install and uninstall targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 215ec63..f799ed7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,3 +10,11 @@ test: all
clean:
$(MAKE) -C src clean
+
+install: all
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ cp -f src/diff-dd ${DESTDIR}${PREFIX}/bin
+ chmod 755 ${DESTDIR}${PREFIX}/bin/diff-dd
+
+uninstall:
+ rm -f ${DESTDIR}${PREFIX}/bin/diff-dd