diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-10 22:36:26 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-10 22:36:26 +1300 |
commit | eae436e88883d3f82d1cd9db01a5d0c33a23437f (patch) | |
tree | c5aa5369fb692358d6ebfdbc1e549839023722c7 | |
parent | Shorten README filename extension (diff) | |
download | wtf8-eae436e88883d3f82d1cd9db01a5d0c33a23437f.tar.gz wtf8-eae436e88883d3f82d1cd9db01a5d0c33a23437f.zip |
Refactor Makefile a bitv1.1
-rw-r--r-- | Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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) |