-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (35 loc) · 1.13 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
40
41
42
43
O ?=
R ?= .
VIRTUALENV = var
.PHONY: install install-git install-hg install-bzr install-svn \
run test nocache clean
VIRTUAL = . "$(VIRTUALENV)/bin/activate";
run: install
$(VIRTUAL) commithero $(O) $(R)
help:
@echo " install Install to virtualenv \$$VIRTUALENV (default: ./var)."
@echo " run Run on repository \$$R with options \$$O."
@echo " install-git Install Git backend."
@echo " install-hg Install Mercurial backend."
@echo " install-bzr Install Bazaar backend."
@echo " install-svn Install Subversion backend."
@echo " test Run test suite."
@echo " clean Remove build files and cache."
test:
$(VIRTUAL) python setup.py --quiet test --verbose
install: $(VIRTUALENV)
$(VIRTUAL) python setup.py --quiet install
$(VIRTUALENV):
virtualenv --distribute --no-site-packages "$(VIRTUALENV)"
install-git: install
$(VIRTUAL) pip install dulwich
install-hg: install
$(VIRTUAL) pip install mercurial
install-bzr: install
$(VIRTUAL) pip install bzr
install-svn: install
$(VIRTUAL) pip install subvertpy
nocache:
rm -f .commithero
clean: nocache
rm -rf "$(VIRTUALENV)" build/ dist/ CommitHero.egg-info/