chiark / gitweb /
sensible perms
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2012 17:45:29 +0000 (17:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2012 17:45:29 +0000 (17:45 +0000)
Makefile

index 2b9b1bf..caf5fd0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ prefix?=/usr/local
 package=xfonts-traditional
 utility=update-$(package)
 
-install=install -m 755 -o 0 -g 0
+install=install -o 0 -g 0
 
 default: all
 
@@ -15,8 +15,9 @@ all:
 install:
        perl -pe 's#^(our \$$prefix=").*("\;\s*)$$#$$1$(prefix)$$2#' \
                <$(utility) >$(utility).sedded
-       $(install) -d $(DESTDIR)$(prefix)/{bin,share/$(package)/rules}
-       $(install) $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
+       $(install) -m755 -d $(DESTDIR)$(prefix)/{bin,share/$(package)/rules}
+       $(install) -m755 $(utility).sedded $(DESTDIR)$(prefix)/bin/$(utility)
+       $(install) -m644 rules/* $(DESTDIR)$(prefix)/share/$(package)/rules/
 
 clean:
        rm -f rules/*.rules