hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-02 18:54:20 +0200
committerhachem <im@hachem.wtf>2026-09-02 18:54:20 +0200
commit633ab05d3c608f9d28da48c7af4e5f363cf3c510 (patch)
tree237648efab2696f4150e80f2355bdff201521869 /Makefile
parentc13a55b6738fea1f1b6b5bf78d422836dea3fe71 (diff)
feat: add typed search and arguments
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e7526ed..c39a8e0 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,9 @@ CPPCHECKFLAGS := --error-exitcode=1 \
TARGET := jafm
SRC := jafm.c
+PREFIX ?= /usr/local
+BINDIR := $(DESTDIR)$(PREFIX)/bin
+
all: $(TARGET)
$(TARGET): $(SRC)
@@ -46,8 +49,15 @@ check:
bear -- make clean debug
cppcheck $(CPPCHECKFLAGS)
+install: $(TARGET)
+ install -d $(BINDIR)
+ install -m 755 $(TARGET) $(BINDIR)/$(TARGET)
+
+uninstall:
+ rm -f $(BINDIR)/$(TARGET)
+
clean:
rm -rf $(TARGET) $(TARGET).dSYM
-.PHONY: all debug check clean
+.PHONY: all debug check install uninstall clean