diff options
| author | Mikkel Thestrup <mikkel@mithe.dk> | 2026-01-25 15:38:58 +0100 |
|---|---|---|
| committer | Mikkel Thestrup <mikkel@mithe.dk> | 2026-01-27 22:56:12 +0100 |
| commit | 35536c401016c0ac69c164a65d2c31b74992a808 (patch) | |
| tree | 5e956602dd23b5ab32dc3cb311be151dfdd10ba4 /Makefile | |
| download | scripts-35536c401016c0ac69c164a65d2c31b74992a808.tar.gz scripts-35536c401016c0ac69c164a65d2c31b74992a808.zip | |
Initial commit
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a6e9a35 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +INSTALL_DIR = /usr/local/bin + +SCRIPTS = $(wildcard *.sh) + +INSTALL_SCRIPTS = $(SCRIPTS:.sh=) + +install: + @for script in $(SCRIPTS); do \ + if [ -f $$script ]; then \ + install_name=$$(basename $$script .sh); \ + cp $$script $(INSTALL_DIR)/$$install_name; \ + chmod +x $(INSTALL_DIR)/$$install_name; \ + fi \ + done + +uninstall: + @for script in $(INSTALL_SCRIPTS); do \ + if [ -f $(INSTALL_DIR)/$$script ]; then \ + rm -f $(INSTALL_DIR)/$$script; \ + fi \ + done + +.PHONY: install uninstall |