about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 25d8394..ffed7e8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CC ?= clang 
-INSTALLPATH ?= /usr/bin
+PREFIX ?= /usr
 
 CFLAGS += -Wall -Werror
 LDFLAGS += -lm
@@ -31,7 +31,8 @@ depend:
 	@echo "Dependencies are automatically generated."
 
 install:
-	install -m 0755 $(OBJ)/$(BIN) $(INSTALLPATH)
+	install -d $(PREFIX)/bin
+	install -m 0755 $(OBJ)/$(BIN) $(PREFIX)/bin/$(BIN)
 
 clean:
 	-rm -rf $(BIN) obj *.core