aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-14 23:25:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-14 23:25:35 +1200
commit216130adcc5d2e730b45cb4a0f7f03718552c776 (patch)
tree692bc7b1db1efc1713f7ec3b7624f109ab803b57 /Makefile
parentMake xgoc(1) executable (diff)
downloaddotfiles-216130adcc5d2e730b45cb4a0f7f03718552c776.tar.gz
dotfiles-216130adcc5d2e730b45cb4a0f7f03718552c776.zip
Test for executable not extension in install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 8e724663..f7776b96 100644
--- a/Makefile
+++ b/Makefile
@@ -163,10 +163,8 @@ install-bash-completion : install-bash
install-bin : bin/sd2u bin/su2d bin/unf test-bin install-bin-man
install -m 0755 -d -- "$(HOME)"/.local/bin
for name in bin/* ; do \
- case $$name in \
- *.sed) ;; \
- *) install -m 0755 -- "$$name" "$(HOME)"/.local/bin ;; \
- esac \
+ [ -x "$$name" ] || continue ; \
+ install -m 0755 -- "$$name" "$(HOME)"/.local/bin ; \
done
install-bin-man :
@@ -197,11 +195,9 @@ install-finger :
install-games : games/acq games/kvlt games/zs test-games install-games-man
install -m 0755 -d -- "$(HOME)"/.local/games
- for game in games/* ; do \
- case $$game in \
- *.sed) ;; \
- *) install -m 0755 -- "$$game" "$(HOME)"/.local/games ;; \
- esac \
+ for name in games/* ; do \
+ [ -x "$$name" ] || continue ; \
+ install -m 0755 -- "$$name" "$(HOME)"/.local/games ; \
done
install-games-man :