From f5763edf230849ad0dc5d9be1b5258ce79c8a2bd Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 19 Oct 2022 11:54:58 -0300 Subject: etc/sh/rc: Move creation of common-lisp/source to Makefile --- Makefile | 5 ++++- etc/sh/rc | 5 ----- 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 - # -- cgit v1.2.3