From 35546b789fe7842e1f5ad6a44b4a85d86955585e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 5 Jan 2017 14:18:53 +1300 Subject: Wrap built binscripts into Makefile var Looking at this now, this really should have been obvious long ago --- Makefile | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) (limited to 'Makefile') 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 ; \ -- cgit v1.2.3