aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2020-12-11 14:40:48 -0500
committerRyan Kavanagh <rak@rak.ac>2020-12-12 07:45:53 -0500
commitc00f57a0063e20cb140214a4070a90a89e300fef (patch)
tree5dd9a8f7a5e479c0ab1ec76eb770dc75e48a084f
parentmodernize reportbugrc (diff)
Allow hardcoding substs in Makefile
Diffstat (limited to '')
-rwxr-xr-xMakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8c8c014..7a8c5b2 100755
--- a/Makefile
+++ b/Makefile
@@ -80,7 +80,7 @@ GLOBAL_FILES = \
.zlogout \
bin/ \
-get-val = $(shell egrep '^$1' $(SUBSTS_FILE) | cut -f2- -d' ')
+get-val = $(if $(C_$1),$(C_$1),$(shell egrep '^$1' $(SUBSTS_FILE) | cut -f2- -d' '))
get-sed-args = $(foreach var,$($(1)),-e 's|$(var)|$(call get-val,$(var))|g')
CURRENT_BRANCH = $(shell git branch --no-color | colrm 1 2)
@@ -89,6 +89,7 @@ SHA256 = $(call get-val,SHA256)
GPG_DISABLED = $(call get-val,GPG_DISABLED)
EMACS_DISABLED= $(call get-val,EMACS_DISABLED)
BUILD_FONTS = $(call get-val,BUILD_FONTS)
+C_SENDMAIL = $(shell which sendmail)
MAIL_PASS = GMAIL_PASS QUEENSU_PASS RYANAKCA_PASS LOCAL_PASS CMU_PASS