From eae436e88883d3f82d1cd9db01a5d0c33a23437f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 10 Nov 2018 22:36:26 +1300 Subject: Refactor Makefile a bit --- Makefile | 14 +++++--------- 1 file 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) -- cgit v1.2.3