From 55f71e014c1433eaef5bdd9d78b49c51ff8e9ca9 Mon Sep 17 00:00:00 2001 From: porst17 Date: Sun, 1 Nov 2020 11:43:35 +0100 Subject: [PATCH] Add install and uninstall rules to Makefile --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index daa31c0..6607479 100644 --- a/Makefile +++ b/Makefile @@ -194,4 +194,13 @@ clean: distclean: clean rm -Rf $(TESTDATA_DIR) +.PHONY: install +install: sparsebundlefs + install -d "$(DESTDIR)$(INSTALL_PREFIX)/bin" + install -m 755 sparsebundlefs "$(DESTDIR)$(INSTALL_PREFIX)/bin/" + +.PHONY: uninstall +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/sparsebundlefs + endif