aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-10 22:36:26 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-10 22:36:26 +1300
commiteae436e88883d3f82d1cd9db01a5d0c33a23437f (patch)
treec5aa5369fb692358d6ebfdbc1e549839023722c7
parentShorten README filename extension (diff)
downloadwtf8-eae436e88883d3f82d1cd9db01a5d0c33a23437f.tar.gz
wtf8-eae436e88883d3f82d1cd9db01a5d0c33a23437f.zip
Refactor Makefile a bitv1.1
-rw-r--r--Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index a801044..6e4ca94 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,10 @@
.POSIX:
.PHONY: all install clean
-
PREFIX = /usr/local
-
-all: wtf8
-
-install: wtf8
- cp -- wtf8 $(PREFIX)/bin
-
+ALL = wtf8
+all: $(ALL)
+install: all
+ cp -- $(ALL) $(PREFIX)/bin
wtf8: wtf8.c wtf8.h
-
clean:
- rm -f wtf8
+ rm -f $(ALL)