reintroduce Makefile (for emake)
This commit is contained in:
parent
96d01820c1
commit
b5aad6a795
1 changed files with 16 additions and 0 deletions
16
Makefile
Normal file
16
Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue