From 045eadd3b45275a2db2b0970d6d82933a996335e Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Thu, 12 Sep 2024 16:40:14 +0200 Subject: [PATCH] Improved install --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e5ca6eb..ccff880 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ HDRS := $(wildcard *.hpp) PREFIX ?= /usr/local INCLUDEDIR ?= $(PREFIX)/include -install: $(HDRS) - mkdir -p $(INCLUDEDIR)/sc - install -c -m 0666 $(HDRS) $(INCLUDEDIR)/sc +install: $(INCLUDEDIR)/sc $(HDRS) + install -c -m 0644 $(HDRS) $(INCLUDEDIR)/sc + +$(INCLUDEDIR)/sc: + install -m 0755 -d $@