[NEW] profile.linux: Define XDG_RUNTIME_DIR if undef
This commit is contained in:
parent
0c6b1312a9
commit
305ebc231a
2 changed files with 11 additions and 3 deletions
1
.profile.linux
Normal file
1
.profile.linux
Normal file
|
|
@ -0,0 +1 @@
|
|||
[ -z "$XDG_RUNTIME_DIR" ] && export XDG_RUNTIME_DIR=/tmp/runtime-`id -u`
|
||||
13
GNUmakefile
13
GNUmakefile
|
|
@ -22,6 +22,13 @@ else ifeq ($(UNAME),FreeBSD)
|
|||
PROFILE = .profile
|
||||
INSTALL = ginstall
|
||||
OPEN = xdg-open
|
||||
else ifeq ($(UNAME),Linux)
|
||||
DEFAULT_TARGETS += $(HOME)/.bashrc \
|
||||
$(HOME)/.sway/config \
|
||||
$(HOME)/.profile.linux
|
||||
PROFILE = .profile
|
||||
INSTALL = install
|
||||
OPEN = xdg-open
|
||||
else
|
||||
DEFAULT_TARGETS += $(HOME)/.bashrc \
|
||||
$(HOME)/.sway/config
|
||||
|
|
@ -48,7 +55,7 @@ profileds: $(PROFILEDS)
|
|||
$(HOME)/.profile: $(PROFILE)
|
||||
cp $< $@
|
||||
|
||||
$(HOME)/.profile.freebsd: .profile.freebsd
|
||||
$(HOME)/.profile.%: .profile.%
|
||||
cp $< $@
|
||||
|
||||
$(HOME)/.bashrc: .bashrc
|
||||
|
|
@ -57,13 +64,13 @@ $(HOME)/.bashrc: .bashrc
|
|||
$(HOME)/.inputrc: .inputrc
|
||||
cp $< $@
|
||||
|
||||
$(HOME)/.bashrc.freebsd: .bashrc.freebsd
|
||||
$(HOME)/.bashrc.%: .bashrc.%
|
||||
cp $< $@
|
||||
|
||||
/opt/local/etc/bashrc: .bashrc
|
||||
sudo cp $< $@
|
||||
|
||||
/opt/local/etc/bashrc.mac: .bashrc.mac
|
||||
/opt/local/etc/bashrc.%: .bashrc.%
|
||||
sudo cp $< $@
|
||||
|
||||
$(HOME)/.vimrc: .vimrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue