aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-05 14:18:53 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-05 14:18:53 +1300
commit35546b789fe7842e1f5ad6a44b4a85d86955585e (patch)
treed572e1d6dddb44882f521b916c832a2482593eca /Makefile
parentAdd an idea about mandoc (diff)
downloaddotfiles-35546b789fe7842e1f5ad6a44b4a85d86955585e.tar.gz
dotfiles-35546b789fe7842e1f5ad6a44b4a85d86955585e.zip
Wrap built binscripts into Makefile var
Looking at this now, this really should have been obvious long ago
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 5 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index 20a4ae9e..8ae9b94e 100644
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ EMAIL := tom@sanctum.geek.nz
KEY := 0xC14286EA77BB8872
SENDMAIL := msmtp
-all : bin/csmw \
+BINS = bin/csmw \
bin/ddup \
bin/gwp \
bin/han \
@@ -86,30 +86,12 @@ all : bin/csmw \
bin/tot \
bin/unf \
bin/uts \
- git/gitconfig \
- gnupg/gpg.conf
+
+all : $(BINS) git/gitconfig gnupg/gpg.conf
clean distclean :
rm -f \
- bin/csmw \
- bin/ddup \
- bin/gwp \
- bin/han \
- bin/max \
- bin/mean \
- bin/med \
- bin/mftl \
- bin/min \
- bin/mode \
- bin/rfct \
- bin/rndi \
- bin/sd2u \
- bin/sec \
- bin/slsf \
- bin/su2d \
- bin/tot \
- bin/unf \
- bin/uts \
+ $(BINS) \
games/acq \
games/aesth \
games/chkl \
@@ -198,9 +180,7 @@ install-bash-completion : install-bash
install -pm 0644 -- bash/bash_completion "$(HOME)"/.config/bash_completion
install -pm 0644 -- bash/bash_completion.d/* "$(HOME)"/.bash_completion.d
-install-bin : bin/csmw bin/ddup bin/gwp bin/han bin/max bin/mean bin/med \
- bin/mftl bin/min bin/mode bin/rfct bin/rndi bin/sd2u bin/sec bin/slsf \
- bin/su2d bin/tot bin/unf bin/uts install-bin-man
+install-bin : $(BINS) install-bin-man
install -m 0755 -d -- "$(HOME)"/.local/bin
for name in bin/* ; do \
[ -x "$$name" ] || continue ; \