aboutgitcode
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-04-28 14:52:17 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-29 14:26:24 +0200
commit6c27ee1c5076b6ba47e134e30e38ac73d0164e7e (patch)
tree9ca79cf36cd82b550f3e0cdb00682c6259c25150
parent845cac975478b76c177b0f23088b7b7d61fee88d (diff)
downloadmbuto-6c27ee1c5076b6ba47e134e30e38ac73d0164e7e.tar
mbuto-6c27ee1c5076b6ba47e134e30e38ac73d0164e7e.tar.gz
mbuto-6c27ee1c5076b6ba47e134e30e38ac73d0164e7e.tar.bz2
mbuto-6c27ee1c5076b6ba47e134e30e38ac73d0164e7e.tar.lz
mbuto-6c27ee1c5076b6ba47e134e30e38ac73d0164e7e.tar.xz
mbuto-6c27ee1c5076b6ba47e134e30e38ac73d0164e7e.tar.zst
mbuto-6c27ee1c5076b6ba47e134e30e38ac73d0164e7e.zip
mbuto: Add Makefile to install/uninstall
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..abaf022
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+# mbuto: Minimal Builder Using Terse Options
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+#
+# Copyright (c) 2022 Red Hat GmbH
+# Author: Stefano Brivio <sbrivio@redhat.com>
+
+all:
+
+prefix ?= /usr/local
+
+install: mbuto
+ mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/share/man/man1
+ cp -d mbuto $(DESTDIR)$(prefix)/bin
+ cp -d mbuto.1 $(DESTDIR)$(prefix)/share/man/man1
+
+uninstall:
+ -${RM} $(DESTDIR)$(prefix)/bin/mbuto
+ -${RM} $(DESTDIR)$(prefix)/share/man/man1/mbuto.1