diff options
| author | Victor Mignot <victor@vmignot.fr> | 2026-02-28 10:34:40 +0100 |
|---|---|---|
| committer | Victor Mignot <victor@vmignot.fr> | 2026-03-04 17:25:22 +0100 |
| commit | 40b83a70db46f7a8fc17fa94a93adadd95840a2c (patch) | |
| tree | 2ad51a016041b58ccffd8d428651dc3f8d048c00 /Makefile | |
| parent | d95c6b0e8cbfdf312c00b81880d836eee6a98a07 (diff) | |
| download | futiles-40b83a70db46f7a8fc17fa94a93adadd95840a2c.tar.gz | |
Add install target to Makefile
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |
