summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 441c008..2decd88 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ SRC := src/common.c \
src/mapcat.c
OBJ := $(SRC:src/%.c=obj/%.o)
OUT := mapcat
+INSTALL := /usr/local/bin/mapcat
all: $(OUT)
@@ -35,5 +36,11 @@ clean:
@echo "${PP_RM} ${OUT}"
@rm -rf ${OUT}
-.PHONY: clean
+install:
+ install $(OUT) $(INSTALL)
+
+uninstall:
+ rm $(INSTALL)
+
+.PHONY: clean install uninstall