bump dwl && scripts setup
This commit is contained in:
parent
eb056a3d11
commit
b0f35f3492
4 changed files with 20 additions and 1 deletions
17
scripts/Makefile
Normal file
17
scripts/Makefile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
SHELL := /bin/bash
|
||||
|
||||
DEST := /usr/local/bin
|
||||
SRC := ./src/
|
||||
install:
|
||||
@if [ "$$(id -u)" -ne 0 ]; then \
|
||||
echo "Error: You must be root to run 'make install'."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@find $(SRC) -type f | while IFS= read -r fpath; do \
|
||||
filename="$${fpath##*/}"; \
|
||||
echo "Installing $$filename ..."; \
|
||||
install -m 755 "$$fpath" "$(DEST)/$$filename"; \
|
||||
done
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue