|
|
|
@ -10,10 +10,23 @@ rmdir:
@@ -10,10 +10,23 @@ rmdir:
|
|
|
|
|
@rmdir $(path) 2>&-; :
|
|
|
|
|
|
|
|
|
|
install: mkdir |
|
|
|
|
@$(find) . -maxdepth 1 -type f -executable -exec basename {} \; | while read -r line; do ln -vs $$(realpath -- $$line) $(path)/$$line 2>&-; done; true
|
|
|
|
|
@$(find) . \
|
|
|
|
|
-maxdepth 1 \
|
|
|
|
|
-type f \
|
|
|
|
|
-executable \
|
|
|
|
|
-exec basename {} \; \
|
|
|
|
|
| while read -r line; do \
|
|
|
|
|
ln -s $$(realpath -- $$line) $(path)/$$line 2>&-; \
|
|
|
|
|
done; \
|
|
|
|
|
true
|
|
|
|
|
|
|
|
|
|
rmlinks: |
|
|
|
|
@$(find) . -maxdepth 1 -type f -executable -exec basename {} \; | xargs -IF rm -fv $(path)/F
|
|
|
|
|
@$(find) . \
|
|
|
|
|
-maxdepth 1 \
|
|
|
|
|
-type f \
|
|
|
|
|
-executable \
|
|
|
|
|
-exec basename {} \; \
|
|
|
|
|
| xargs -IF rm -fv $(path)/F
|
|
|
|
|
|
|
|
|
|
uninstall: rmlinks rmdir |
|
|
|
|
|
|
|
|
|