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