aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--README.markdown5
2 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7a9ebdd..ee665d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
-.PHONY: all clean
+.PHONY: all install clean
+
+PREFIX = /usr/local
CC = clang
CFLAGS = -std=c99 -Weverything
all : wtf8
+install : wtf8
+ install -m 0755 -- wtf8 $(PREFIX)/bin
+
wtf8 : wtf8.c wtf8.h
$(CC) $(CFLAGS) wtf8.c -o $@
diff --git a/README.markdown b/README.markdown
index 7d24ff9..b529465 100644
--- a/README.markdown
+++ b/README.markdown
@@ -7,10 +7,11 @@ with the characters. Expects a single argument, a string.
$ LANG=C.UTF-8
$ export LANG
$ make
- $ ./wtf8 test
+ $ sudo make install
+ $ wtf8 test
74 65 73 74
t e s t
- $ ./wtf8 tøást
+ $ wtf8 tøást
74 c3 b8 c3 a1 73 74
t ø á s t