diff options
| author | hachem <im@hachem.wtf> | 2026-09-19 22:30:59 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-19 22:30:59 +0200 |
| commit | 612d65d57f5287094f363b77df9f90eb645eb266 (patch) | |
| tree | a4936cdce6ff2d22feb4ad55d4b8331e5d28c568 /Makefile | |
| parent | 4bcc54914d059e950cab79164fb13ed67376ee5d (diff) | |
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -5,8 +5,9 @@ CFLAGS = -std=c17 -Wall -Wextra -Werror -Wpedantic -O2 -Ibin SOURCES = ast.c ast.h eval.c eval.h lexer.h main.c OBJECTS = bin/lexer.o bin/parser.o bin/ast.o bin/eval.o bin/main.o SANITIZE = -g -O0 -fsanitize=address,undefined +PREFIX ?= /usr/local -.PHONY: all debug check format lint clean +.PHONY: all debug check format lint install uninstall clean all: sfinae @@ -50,5 +51,12 @@ format: lint: clang-tidy ast.c eval.c main.c -- -std=c17 -Ibin +install: sfinae + install -d $(DESTDIR)$(PREFIX)/bin + install -m 755 sfinae $(DESTDIR)$(PREFIX)/bin/sfinae + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/sfinae + clean: rm -rf bin sfinae |
