bump dwl && scripts setup

This commit is contained in:
Zhongheng Liu 2025-10-03 12:47:49 +02:00
commit b0f35f3492
4 changed files with 20 additions and 1 deletions

17
scripts/Makefile Normal file
View 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