aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dd3b3e9..784e171 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@
.POSIX:
+PREFIX = /usr/local
PROJECT = libdynstr.a
CFLAGS = -Iinclude
DEPS = \
@@ -21,6 +22,14 @@ DEPS = \
all: $(PROJECT)
+install: $(PROJECT)
+ mkdir -p $(PREFIX)/include
+ cp include/dynstr.h $(PREFIX)/include
+ chmod 0644 $(PREFIX)/include/dynstr.h
+ mkdir -p $(PREFIX)/bin
+ cp $(PROJECT) $(PREFIX)/bin
+ chmod 0755 $(PREFIX)/bin/$(PROJECT)
+
clean:
rm -f $(DEPS)