reintroduce Makefile (for emake)

This commit is contained in:
Zhongheng Liu 2026-05-18 12:29:33 +02:00
commit b5aad6a795

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
SRCDIR ?= .
SCRIPTS := $(wildcard $(SRCDIR)/*.sh)
install:
@mkdir -p $(BINDIR)
for f in $(SCRIPTS); do \
install -m 755 "$$f" "$(BINDIR)/$$(basename $$f .sh)"; \
done
uninstall:
for f in $(SCRIPTS); do \
rm -f "$(BINDIR)/$$(basename $$f .sh)"; \
done