-
Notifications
You must be signed in to change notification settings - Fork 274
/
Makefile
35 lines (28 loc) · 840 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
SUBDIRS=src
all: ## build c library
(cd src; ${MAKE} all)
check: ## run tests
(cd src; ${MAKE} check)
clean: ## clean up
@(cd src; ${MAKE} clean)
git gc --aggressive
.PHONY: all check clean
docker-console: ## log into the docker test image
docker run --rm -it \
-e COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN \
-v $(PWD):/build \
-w /build \
nickg/libinjection-docker \
sh
docker-ci: ## run the tests in docker, as travis-ci does
docker run --rm \
-e COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN \
-v $(PWD):/build \
-w /build \
nickg/libinjection-docker \
./make-ci.sh
# https://www.client9.com/self-documenting-makefiles/
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help
.DEFAULT_GOAL := help