Improved install

This commit is contained in:
Bob Polis 2024-09-12 16:40:14 +02:00
parent 7c6d8e4add
commit 045eadd3b4

View File

@ -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 $@