summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-22 19:50:58 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-22 19:50:58 +1300
commitbc4da8f97fc493925f4b782fdb29be3462baabe7 (patch)
tree8abefbfe6a5305b1756139f873c2593b5f318721
parent4ee2ec70989449dc1a731937782afad57b28621b (diff)
downloadayylmao-bc4da8f97fc493925f4b782fdb29be3462baabe7.tar.gz
Quote PREFIX
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4da36f3..6719af3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,18 +3,20 @@
PREFIX = $(HOME)/.local
CC = clang
-CFLAGS = -std=c90 -Weverything -I $(PREFIX)/include
-LDFLAGS = -L $(PREFIX)/lib -l ayylmao
+CFLAGS = -std=c90 -Weverything -I "$(PREFIX)"/include
+LDFLAGS = -L "$(PREFIX)"/lib -l ayylmao
all : ayylmao.dynamic ayylmao.static
install: install-dynamic install-man
install-dynamic : ayylmao.dynamic
- install -m 0755 -- ayylmao.dynamic $(PREFIX)/bin/ayylmao
+ mkdir -p -- "$(PREFIX)"/bin
+ install -m 0755 -- ayylmao.dynamic "$(PREFIX)"/bin/ayylmao
install-static : ayylmao.static
- install -m 0755 -- ayylmao.static $(PREFIX)/bin/ayylmao
+ mkdir -p -- "$(PREFIX)"/bin
+ install -m 0755 -- ayylmao.static "$(PREFIX)"/bin/ayylmao
install-man:
mkdir -p -- "$(PREFIX)"/share/man/man1