aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-19 11:54:58 -0300
committerEuAndreh <eu@euandre.org>2022-10-19 11:54:58 -0300
commitf5763edf230849ad0dc5d9be1b5258ce79c8a2bd (patch)
treeb50d0138f8dbfc95ad8191338f73202fff5cd293
parentMakefile: Add to generate manpages from POD (diff)
downloaddotfiles-f5763edf230849ad0dc5d9be1b5258ce79c8a2bd.tar.gz
dotfiles-f5763edf230849ad0dc5d9be1b5258ce79c8a2bd.tar.xz
etc/sh/rc: Move creation of common-lisp/source to Makefile
-rw-r--r--Makefile5
-rw-r--r--etc/sh/rc5
2 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2cbee71..b4642a3 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,11 @@ pod2man = \
share/man/man1/z.1 \
-all: $(pod2man)
+all: $(pod2man) $(XDG_DATA_HOME)/common-lisp/source
share/man/man1/z.1: bin/z
pod2man bin/z > $@
+
+$(XDG_DATA_HOME)/common-lisp/source:
+ ln -s $(SRC)/libre $@
diff --git a/etc/sh/rc b/etc/sh/rc
index 0ae2cdf..ecb49b7 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -266,11 +266,6 @@ if [ -r "$F" ]; then
. "$F"
fi
-mkdir -p "$XDG_DATA_HOME"/common-lisp
-if [ ! -e "$XDG_DATA_HOME"/common-lisp/source ]; then
- ln -s "$SRC"/libre "$XDG_DATA_HOME"/common-lisp/source
-fi
-
#