make install supports DESTDIR variable

Fri, 16 Dec 2016 23:04:48 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 16 Dec 2016 23:04:48 +0100
changeset 45
6114a2c28d28
parent 44
9574a181ec26
child 46
e0928e4b9a59

make install supports DESTDIR variable

Makefile file | annotate | diff | comparison | revisions
--- a/Makefile	Wed May 22 13:00:36 2013 +0200
+++ b/Makefile	Fri Dec 16 23:04:48 2016 +0100
@@ -48,7 +48,7 @@
 all: $(BUILDDIR) $(BIN)
 
 install: $(BIN)
-	cp $(BIN) $(PREFIX)/bin
+	cp $(BIN) $(DESTDIR)$(PREFIX)/bin
 
 $(BIN): $(OBJ:%=$(BUILDDIR)/%)
 	$(LD) -o $(BIN) $^ $(LDFLAGS)

mercurial