commit: 39409c313b84b8adb4163a380140442a0228de8f
parent 658d4c6b431f534627d3a6314f8ada65969f958b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 30 Nov 2024 12:09:35 +0100
Makefile: add install target
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,7 +1,13 @@
# Copyright © 2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# SPDX-License-Identifier: MIT
+PREFIX ?= /usr
+
all:
test-error: test-error.c error.h
${CC} ${CFLAGS} -o test-error test-error.c ${LDFLAGS} ${LDSTATIC}
+
+install:
+ mkdir -p ${DESTDIR}${PREFIX}/include
+ cp error.h ${DESTDIR}${PREFIX}/include/error.h