Skip to content

Commit 0c72dd7

Browse files
committed
Use standard variable names for install rules
As per https://www.gnu.org/software/make/manual/html_node/Directory-Variables.html The INSTALL_PREFIX variable name has been deprecated in favour of DESTDIR, so having both of them in the rule didn't make sense. We now default to /usr/local as the install prefix, as recommended by the GNU Make manual.
1 parent 55f71e0 commit 0c72dd7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,17 @@ clean:
194194
distclean: clean
195195
rm -Rf $(TESTDATA_DIR)
196196

197+
# Install
198+
199+
prefix = /usr/local
200+
197201
.PHONY: install
198202
install: sparsebundlefs
199-
install -d "$(DESTDIR)$(INSTALL_PREFIX)/bin"
200-
install -m 755 sparsebundlefs "$(DESTDIR)$(INSTALL_PREFIX)/bin/"
203+
install -d "$(DESTDIR)$(prefix)/bin"
204+
install -m 755 sparsebundlefs "$(DESTDIR)$(prefix)/bin/"
201205

202206
.PHONY: uninstall
203207
uninstall:
204-
rm -f $(DESTDIR)$(PREFIX)/bin/sparsebundlefs
208+
rm -f $(DESTDIR)$(prefix)/bin/sparsebundlefs
205209

206210
endif

0 commit comments

Comments
 (0)