From 809f331892f2476083d894adb948513089a4f493 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 3 Oct 2026 13:17:15 -0700 Subject: [PATCH] add install target --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 61bf6e1..898c78f 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ LDFLAGS = -lraylib -lm -lsqlite3 HEADERS = \ include/raygui.h include/common.h include/window_state.h +PREFIX ?= /usr/local +BINDIR := $(PREFIX)/bin + # adhd: $(OBJECTS) # $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) @@ -22,3 +25,8 @@ src/window_state.o: src/window_state.c $(HEADERS) $(CC) -c $(CFLAGS) src/window_state.c -o $@ clean: rm -rf $(OBJECTS) adhd + +.PHONY: install +install: adhd + install -D adhd $(BINDIR)/adhd +