summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-12-05 09:21:35 +0100
committerGravatar Tom Willemsen2012-12-05 09:23:49 +0100
commit3306ac7d41020e3750c76a867e767d18739f138d (patch)
tree8d9838535a338022a9c842f39f5f815742f99569
parent15adc911da3f5b527c74b6bb67d677898d6a173e (diff)
downloaddotfiles-3306ac7d41020e3750c76a867e767d18739f138d.tar.gz
dotfiles-3306ac7d41020e3750c76a867e767d18739f138d.zip
Change file permissions for .xinitrc to 744
The .xinitrc gets executed, so it must get the correct bit when installing.
-rw-r--r--Makefile2
-rw-r--r--dotfiles.mk3
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec793cd..e032b22 100644
--- a/Makefile
+++ b/Makefile
@@ -7,3 +7,5 @@ objects=.bash_profile .beetsconfig .conky_box.lua .conkyrc .gitconfig \
.xinitrc .Xmodmap .xsession .zprofile .zshrc
include dotfiles.mk
+
+install-.xinitrc: MODE=744
diff --git a/dotfiles.mk b/dotfiles.mk
index 6d33f72..19be79f 100644
--- a/dotfiles.mk
+++ b/dotfiles.mk
@@ -1,5 +1,6 @@
LOAD_PATH=. /usr/share/emacs/site-lisp $(HOME)/.emacs.d/site-lisp
EMACS=emacs $(addprefix -L ,$(LOAD_PATH))
+MODE=644
FG_YEL=\033[0;33m
FG_GRE=\033[0;32m
@@ -32,7 +33,7 @@ $(modules): %:
@$(MAKE) -C $*
$(install-objects): install-%: %
- $(if $(call newer,$*),install -pDm 644 "$*" "$(DESTDIR)/$*")
+ $(if $(call newer,$*),install -pDm $(MODE) "$*" "$(DESTDIR)/$*")
$(install-modules): install-%:
@$(MAKE) -C $* install