aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-02 15:05:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-02 15:05:37 +1300
commitdcf56dc886ac67cd57361aebc48f11835b138ecf (patch)
tree09078719be22222551f6826b60d6ff24bc8156d4
parentWhoops, couple more references (diff)
downloadspsh-dcf56dc886ac67cd57361aebc48f11835b138ecf.tar.gz
spsh-dcf56dc886ac67cd57361aebc48f11835b138ecf.zip
Add an install target, just for laffs
You can set PREFIX to be something less stupid, like: $ make install PREFIX=/home/you/.local
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 533f92f..4a63c27 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,14 @@
CC = gcc
LDFLAGS = -lreadline
CFLAGS = -Wall -Wpedantic -ansi -pedantic-errors
+PREFIX := /usr/local
spsh : main.o banner.o cmd.o loop.o
$(CC) $(CFLAGS) $(LDFLAGS) -o spsh main.o banner.o cmd.o loop.o
+install : spsh
+ install -m 0755 spsh "$(PREFIX)"/bin
+
clean :
rm -f -- *.o spsh