aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-04-11 18:50:11 -0400
committerKylie McClain <somasis@exherbo.org>2016-04-11 18:50:11 -0400
commit1ce61e3c21e0b4066bf1111e666651f4562d916e (patch)
tree43a3d9fb68b8f98237e5fa790aeb69a2828cb60c
parentb61f59f91e5f88cd966c4e2f1415828b848a76ee (diff)
downloadmusl-compat-1ce61e3c21e0b4066bf1111e666651f4562d916e.tar.gz
musl-compat-1ce61e3c21e0b4066bf1111e666651f4562d916e.tar.xz
musl-compat-1ce61e3c21e0b4066bf1111e666651f4562d916e.zip
Explicitly declare modes for installing files
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c5bef2c..f7b89c6 100644
--- a/Makefile
+++ b/Makefile
@@ -28,13 +28,13 @@ bin/%.o: bin/%.c
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
$(DESTDIR)$(bindir)/%: bin/$(notdir %)
- install -D $< $(basename $@)
+ install -D -m 755 $< $(basename $@)
$(DESTDIR)$(includedir)/%: include/$(notdir %)
- install -D $< $@
+ install -D -m 644 $< $@
$(DESTDIR)$(libdir)/%: lib/$(notdir %)
- install -D $< $@
+ install -D -m 755 $< $@
install: build $(foreach b,$(BINS),$(DESTDIR)$(bindir)/$(b).o) $(foreach b,$(BINS_SH),$(DESTDIR)$(bindir)/$(b).sh) $(foreach i,$(INCLUDES),$(DESTDIR)$(includedir)/$(i)) $(foreach l,$(LIBS),$(DESTDIR)$(libdir)/$(l))