forked from cxreg/smartcd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 1.2 KB
/
Makefile
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
35
36
37
38
39
all:
@echo "Run \"make install\" to install to your home directory"
@echo "To set up your shell configuration, run \"smartcd 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
install:
@[ -d $(HOME)/.smartcd/lib/core ] && echo "* Removing old $(HOME)/.smartcd/lib/core" && rm -rf $(HOME)/.smartcd/lib/core || true
@echo "* Installing libraries to $(HOME)/.smartcd/lib"
@mkdir -p $(HOME)/.smartcd/lib/core
@cp -r lib/core $(HOME)/.smartcd/lib
@echo "* Installing helpers to $(HOME)/.smartcd/helper"
@mkdir -p $(HOME)/.smartcd/helper
@cp -r helper $(HOME)/.smartcd
@[ -f $(HOME)/.bash_smartcd ] && echo "* Replacing legacy $(HOME)/.bash_smartcd" && cp bash_smartcd $(HOME)/.bash_smartcd || true
@echo
@echo "Congratulations, smartcd is now installed"
@echo
@echo "If this is your first time installing smartcd, run the following commands:"
@echo
@echo " source load_smartcd"
@echo " smartcd config"
@echo
@echo "See the README file for ideas about what you can do with it"
setup:
@echo "\`make setup\` is deprecated, please run \`smartcd config\`"