summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 3d92896..a4c6c81 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,7 @@
include ../config.mk
-DESTDIR ?= /
PREFIX ?= /usr/local
+INSTALL ?= install
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE
CFLAGS += -W -Wall -O2 -pedantic -std=c99
@@ -18,7 +18,7 @@ $(BIN): $(OBJS) Makefile ../config.mk
%.o: %.c Makefile ../config.mk
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-install:
+install: $(BIN)
$(INSTALL) -m 755 $(BIN) $(DESTDIR)$(PREFIX)/bin/
uninstall: