aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fd554ae..3e79669 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@ SRCS=src/env.cff \
OBJ=$(foreach o,$(subst .cff,.o,$(SRCS)),build/$o)
OUT ?= cffc
+PREFIX ?= ~/.local/bin/
ifneq ($(VERBOSE),)
@@ -40,4 +41,8 @@ build/%.o: %.cff
$Vset -euo pipefail;\
(opt -Oz -opaque-pointers $@.ll | llc --relocation-model=dynamic-no-pic -opaque-pointers | as - -o $@) || ($(RM) $@; false)
+install:
+ install -m777 $(OUT) $(PREFIX)
+
+.PHONY: install clean