-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (24 loc) · 883 Bytes
/
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
# Disable exporting of all environment variables because we're testing profile scripts.
# If we preserve the environment as-is AND someone is running `make test` from within
# an environment bootstrapped by envy, then we'll be calling envy twice!
unexport
# Operate with a much smaller path, again, because envy scripts set the path for us.
PATH=$(dir $(shell which shellspec)):/usr/local/bin:/usr/bin:/bin
export PATH
# We need HOME set for most of the profile scripts tests.
export HOME
# Export REPOS_ROOT so that we know which directory to set up per-repo aliases in.
export REPOS_ROOT
shell_src := \
.installer/install.sh \
etc/bash/profile \
$(shell find etc/bash -name "*.sh" -type f)
shellspec := $(shell which shellspec)
error:
@echo "Please specify a make target"
@exit 2
install:
.installer/install.sh
test:
shellcheck $(shell_src)
#shellspec --shell bash