diff --git a/Makefile b/Makefile index 3bb0ca6..0783e49 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ OUT := qmic CFLAGS := -Wall -g -O2 LDFLAGS := +prefix := /usr/local SRCS := qmic.c qmi_message.c qmi_struct.c OBJS := $(SRCS:.c=.o) @@ -10,7 +11,7 @@ $(OUT): $(OBJS) $(CC) $(LDFLAGS) -o $@ $^ install: $(OUT) - install -D -m 755 $< $(PREFIX)/bin/$< + install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$< clean: rm -f $(OUT) $(OBJS)