From 40b83a70db46f7a8fc17fa94a93adadd95840a2c Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Sat, 28 Feb 2026 10:34:40 +0100 Subject: Add install target to Makefile --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 29e233f..02d1996 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ CC := gcc CFLAGS := CFLAGS_EXTRA := -std=c99 -Wpedantic -Wall -Wextra LDFLAGS := +PREFIX := +UTILS := true false basename BIN := futiles OBJS := $(patsubst %.c, %.o, $(wildcard src/*.c)) @@ -17,4 +19,10 @@ src/%.o: src/%.c clean: rm -f $(BIN) $(OBJS) -.PHONY: clean +install: $(BIN) + install -m 755 $(BIN) $(PREFIX)/bin/ + for util in $(UTILS) ; do \ + ln -sf futiles /usr/bin/$$util; \ + done + +.PHONY: clean install -- cgit v1.2.3