diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-19 17:47:46 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-05-19 17:48:28 +1200 |
commit | 15f042746c09219bacda5c75062856a845eb503f (patch) | |
tree | 917e9d02326a4f113c15a841f6923534b632bb05 | |
parent | Turns out implicit rules do handle this (diff) | |
download | wtf8-15f042746c09219bacda5c75062856a845eb503f.tar.gz (sig) wtf8-15f042746c09219bacda5c75062856a845eb503f.zip |
Nice POSIX makefilev1.0
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,13 +1,14 @@ +.POSIX: .PHONY: all install clean PREFIX = /usr/local -all : wtf8 +all: wtf8 -install : wtf8 - install -m 0755 -- wtf8 $(PREFIX)/bin +install: wtf8 + cp -- wtf8 $(PREFIX)/bin -wtf8 : wtf8.c wtf8.h +wtf8: wtf8.c wtf8.h -clean : +clean: rm -f wtf8 |