summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn@kryo.se>2016-06-06 08:40:23 -0700
committerBjorn Andersson <bjorn@kryo.se>2016-06-06 08:40:23 -0700
commit1c036374ea1dd7a831821efbe3ee686e2a1842fe (patch)
tree58787266b1edb6d0158c1c3adddf0813c8d33c5b
parent62f4c6a799ddc2b4543f646b171fb22e635ed4b6 (diff)
parentd42cf61564122d4014e1797d916c99b1ecde416e (diff)
Merge pull request #1 from ndechesne/gnuv0.1upstream/0.0+0+1c036374
Makefile: implement GNU Coding Standard for Makefiles
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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)