summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-22 03:16:14 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2021-08-22 03:16:14 -0500
commitf26cc625b365f00420b04ab4bf5f59a4e8d09010 (patch)
treea04353e66e1a8ff511c076eeb465ff7d1b1e4826
parent79e62092cf73e43248127239bd759f1c52d99b45 (diff)
downloaddeb-git-update-agent-f26cc625b365f00420b04ab4bf5f59a4e8d09010.tar.xz
deb-git-update-agent-f26cc625b365f00420b04ab4bf5f59a4e8d09010.zip
Add makefile for install
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..44d698a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+ifeq ($(PREFIX),)
+ PREFIX := /usr/local
+endif
+
+ifeq ($(BINDIR),)
+ BINDIR := /bin
+endif
+
+CMD=git-update-agent
+
+install:
+ mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)/
+ install -D -m 755 $(CMD) $(DESTDIR)$(PREFIX)$(BINDIR)/
+
+uninstall:
+ rm -rf $(DESTDIR)$(PREFIX)$(BINDIR)/$(CMD)
+
+.PHONY: install uninstall $(CMD)