From 709586dda2a142dbde65d2933135a00f61b60d6d Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Tue, 27 Jun 2017 20:54:30 -0600 Subject: [PATCH] Support DESTDIR in the Makefile Support installing to an alternate location: https://www.gnu.org/prep/standards/html_node/DESTDIR.html --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d48cdc4..fc35993 100644 --- a/Makefile +++ b/Makefile @@ -49,9 +49,9 @@ clean: rm -f serpent *\.o libserpent.a libserpent.so install: - cp serpent /usr/local/bin - cp libserpent.a /usr/local/lib - cp libserpent.so /usr/local/lib - rm -rf /usr/local/include/libserpent - mkdir -p /usr/local/include/libserpent - cp $(HEADERS) /usr/local/include/libserpent + cp serpent $(DESTDIR)/usr/local/bin + cp libserpent.a $(DESTDIR)/usr/local/lib + cp libserpent.so $(DESTDIR)/usr/local/lib + rm -rf $(DESTDIR)/usr/local/include/libserpent + mkdir -p $(DESTDIR)/usr/local/include/libserpent + cp $(HEADERS) $(DESTDIR)/usr/local/include/libserpent