From 1f9eab3a7cfdefdb2ebb2fca4e8f1b45d898f42a Mon Sep 17 00:00:00 2001 From: Vlasta Vesely Date: Wed, 6 Jun 2018 10:56:44 +0200 Subject: [PATCH] Makefile: allow to change installation path prefix --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4019f98..02a5a3f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PREFIX=/usr + .PHONY: main test install uninstall clean SRCFILES := $(shell find . -type f -name "*.c") @@ -14,10 +16,10 @@ test: iast $(CC) -MMD -MP -c $< -o $@ install: - install -m 0755 iast /usr/bin + install -m 0755 iast $(PREFIX)/bin uninstall: - rm -f /usr/bin/iast + rm -f $(PREFIX)/bin/iast clean: $(RM) iast *.o *.d