diff options
author | Eric Wong <e@80x24.org> | 2021-04-29 08:26:11 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-05-06 23:07:43 +0000 |
commit | 96c43ff8f26cf89934198d2387cddef1f119a271 (patch) | |
tree | d94f8064a08d62bb8ace91e3de08ac5078da7d73 /GNUmakefile | |
parent | a282c47a217e6028008408dd74b249fddaad2153 (diff) | |
download | dtas-96c43ff8f26cf89934198d2387cddef1f119a271.tar.gz |
This is useful for users relying on system Ruby and lack permissions to install gems.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index e5914b2..084a2d8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org> +# Copyright (C) 2013-2021 all contributors <dtas-all@nongnu.org> # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> all:: pkg = dtas @@ -74,5 +74,17 @@ $(pkgtgz): .tgz-manifest package: $(pkgtgz) $(pkggem) +# Install symlinks to ~/bin (which is hopefuly in PATH) which point to +# this source tree. +# prefix + bindir matches git.git Makefile: +prefix = $(HOME) +bindir = $(prefix)/bin +symlink-install : + mkdir -p $(bindir) + dtas=$(CURDIR)/dtas.sh && cd $(bindir) && \ + for x in $(CURDIR)/bin/*; do \ + ln -sf "$$dtas" $$(basename "$$x"); \ + done + .PHONY: all .FORCE-GIT-VERSION-FILE test $(test_units) NEWS .PHONY: check-warnings fix-perms |