-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
34 lines (26 loc) · 940 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
33
34
PACKAGE-NAME=aws
DEPS-FLAGS=--check-pkg-deps --unused-pkg-deps
all: setup
# Primarily for use by CI.
# Installs dependencies as well as linking this as a package.
install:
raco pkg install --deps search-auto
remove:
raco pkg remove $(PACKAGE-NAME)
# Primarily for day-to-day dev.
# Note: Also builds docs (if any) and checks deps.
setup:
raco setup --tidy --avoid-main $(DEPS-FLAGS) --pkgs $(PACKAGE-NAME)
# Note: Each collection's info.rkt can say what to clean, for example
# (define clean '("compiled" "doc" "doc/<collect>")) to clean
# generated docs, too.
clean:
raco setup --fast-clean --pkgs $(PACKAGE-NAME)
# Primarily for use by CI, after make install -- since that already
# does the equivalent of make setup, this tries to do as little as
# possible except checking deps.
check-deps:
raco setup --no-docs $(DEPS-FLAGS) $(PACKAGE-NAME)
# Suitable for both day-to-day dev and CI
test:
raco test -x -p $(PACKAGE-NAME)