17 lines
370 B
Makefile
17 lines
370 B
Makefile
SCRIPTS = $(patsubst scripts/%.sh,%,$(wildcard scripts/*.sh))
|
|
PREFIX = /usr
|
|
|
|
install:
|
|
@for s in $(SCRIPTS) ; do \
|
|
echo "installing script: $$s" ; \
|
|
install -Dm755 "scripts/$$s.sh" $(DESTDIR)/$(PREFIX)/bin/$$s ; \
|
|
done
|
|
|
|
uninstall:
|
|
@for s in $(SCRIPTS) ; do \
|
|
echo "removing script: $$s" ; \
|
|
rm $(DESTDIR)/$(PREFIX)/bin/$$s ; \
|
|
done
|
|
|
|
.PHONY: install uninstall
|