forked from zdict/zdict
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 837 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
35
36
37
38
39
.PHONY: docker-zdict docker-run docker-pull docker-push docker-build clean-pyc clean-vim-swap-files clean test
docker-zdict:
# Let users can use `make docker-zdict apple bird`
# https://stackoverflow.com/questions/6273608
@docker run -it --rm zdict/zdict $(filter-out $@,$(MAKECMDGOALS))
docker-run:
@docker run -it --entrypoint=/bin/bash --rm zdict/zdict
docker-pull:
@docker pull zdict/zdict
docker-push:
@docker push zdict/zdict
docker-build:
@docker build -t "zdict/zdict:latest" .
clean-pyc:
rm -f *.pyc
clean-vim-swap-files:
rm -f *.sw*
clean: clean-pyc clean-vim-swap-files
rm -rf build dist htmlcov .coverage* .cache .eggs
install-test-deps:
pip install -r requirements-test.txt
test:
py.test
test-with-pdb:
py.test --pdb
# Make docker-zdict don't complain about no make rules for apple, bird, ...
%:
@: