-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 1016 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
all:
@echo "Run \"make install\" to install to your home directory"
@echo "To set up your shell configuration, run \"choose config\""
@echo "See README for instructions on installation or configuration"
test:
t/harness.sh
test_bash:
t/harness.sh /bin/bash
test_zsh:
t/harness.sh /usr/bin/zsh
test_all: test_bash test_zsh
remove_core:
@[ -d $(HOME)/.choose/lib/core ] && echo "* Removing old $(HOME)/.choose/lib/core" && rm -rf $(HOME)/.choose/lib/core || true
remove_toolfiles:
@[ -d $(HOME)/.choose/lib/toolfiles ] && echo "* Removing old $(HOME)/.choose/lib/toolfiles" && rm -rf $(HOME)/.choose/lib/toolfiles || true
uninstall: remove_core remove_toolfiles
install: uninstall
@echo "* Installing libraries to $(HOME)/.choose/lib"
@mkdir -p $(HOME)/.choose/lib/core
@cp -pr lib/core $(HOME)/.choose/lib
@cp -pr lib/toolfiles $(HOME)/.choose/lib/toolfiles
@cp load_choose $(HOME)/.choose/load_choose
@echo "* Run source load_choose"
@echo "Congratulations, choose is now installed"
@echo