summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-06-20 17:17:29 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-06-20 17:17:29 +0400
commitc221c7fce68bcdca1392ee4c5c37e681d14135dc (patch)
tree6cb0f5351e1e81b6b2d460ba4532ac687d47194c
parent15c47cb8c7d5662be0fdb68800cedaa133949b56 (diff)
fix(makefile): update git config installation and clean trailing whitespaces
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7a59c9a..1928b2b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ DWM = dwm-farajli-6.5
ST = st-farajli-0.9.2
DMENU = dmenu-farajli-5.3
SLSTATUS = slstatus-farajli-1.0
-
+
CONFDIR = $(HOME)/.config
MUSICDIR = $(HOME)/music
PROJDIR = $(HOME)/proj
@@ -48,8 +48,10 @@ config:
$(LINK) $(CONFDIR)/shell/profile $(ZPROFILE)
git:
- sed '/^# signingkey =/d' config/git/gitconfig > $(GITCONFIG)
+ sed '/# signingkey = <to be set manually>/d' config/git/gitconfig > $(GITCONFIG)
+ @echo "#####################################################################"
@echo "Warning: Git commit/tag signing is enabled but signingKey is not set." >&2
+ @echo "#####################################################################"
@echo "Configure it manually using:" >&2
@echo " gpg --list-secret-keys --keyid-format=long" >&2
@echo " git config --global user.signingkey <YOUR_KEY_ID>" >&2
@@ -84,11 +86,11 @@ $(ST): $(ST).tar.gz
$(DMENU): $(DMENU).tar.gz
$(SLSTATUS): $(SLSTATUS).tar.gz
-$(DWM) $(ST) $(DMENU) $(SLSTATUS):
+$(DWM) $(ST) $(DMENU) $(SLSTATUS):
tar -xf $<
cd $@; PREFIX=~/.local make install
-check:
+check:
@-./dep.sh
dist: clean
@@ -102,6 +104,6 @@ clean:
$(DWM) $(DWM).tar.gz \
$(ST) $(ST).tar.gz \
$(DMENU) $(DMENU).tar.gz \
- $(SLSTATUS) $(SLSTATUS).tar.gz
+ $(SLSTATUS) $(SLSTATUS).tar.gz
.PHONY: all config desktop scripts server arch-linux directory full check