From 305ebc231ad4efe01d10da2c45b5c91839fbdd2e Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Thu, 25 Jul 2024 05:46:34 -0500 Subject: [PATCH] [NEW] profile.linux: Define XDG_RUNTIME_DIR if undef --- .profile.linux | 1 + GNUmakefile | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .profile.linux diff --git a/.profile.linux b/.profile.linux new file mode 100644 index 0000000..6a0ee34 --- /dev/null +++ b/.profile.linux @@ -0,0 +1 @@ +[ -z "$XDG_RUNTIME_DIR" ] && export XDG_RUNTIME_DIR=/tmp/runtime-`id -u` diff --git a/GNUmakefile b/GNUmakefile index 3231a25..d12904e 100644 --- a/GNUmakefile +++ b/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