about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorThordur Bjornsson <thorduri@secnorth.net>2012-11-05 15:41:52 +0100
committerThordur Bjornsson <thorduri@secnorth.net>2012-11-05 15:42:48 +0100
commit5c96ff2741fb36c5b9e793a55bd8a8a0bef76021 (patch)
tree3a9b4436dfcfc483dbcda2261ff669c1dfe14b9f /Makefile
parent65780fdfff8cb81e99b7b5ba8d69391d81c97aba (diff)
downloadministat-5c96ff2741fb36c5b9e793a55bd8a8a0bef76021.tar.gz
ministat-5c96ff2741fb36c5b9e793a55bd8a8a0bef76021.tar.xz
ministat-5c96ff2741fb36c5b9e793a55bd8a8a0bef76021.zip
Better install target.
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