/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jelmer Vernooij
  • Date: 2018-04-02 14:59:43 UTC
  • mto: (0.200.1913 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180402145943-s5jmpbvvf1x42pao
Just don't touch the URL if it's already a valid URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DEBUGGER ?= 
 
2
BRZ_OPTIONS ?= 
 
3
BRZ ?= $(shell which brz)
 
4
PYTHON ?= $(shell which python)
 
5
SETUP ?= ./setup.py
 
6
PYDOCTOR ?= pydoctor
 
7
CTAGS ?= ctags
 
8
PYLINT ?= pylint
 
9
RST2HTML ?= rst2html
 
10
TESTS ?= ^breezy.plugins.git. Git breezy.tests.test_info.TestInfo.test_describe_tree_format breezy.tests.test_errors.TestErrors.test_no_arg_named_message breezy.tests.test_info.TestInfo.test_describe_checkout_format
 
11
SUBUNIT_FILTER ?= subunit-filter --fixup-expected-failures=xfail --success --xfail
 
12
SUBUNIT_FORMATTER = subunit2pyunit
 
13
 
 
14
all:: build 
 
15
 
 
16
build::
 
17
        $(SETUP) build
 
18
 
 
19
build-inplace::
 
20
 
 
21
install::
 
22
        $(SETUP) install
 
23
 
 
24
clean::
 
25
        $(SETUP) clean
 
26
        rm -f *.so
 
27
 
 
28
check:: build-inplace 
 
29
        BRZ_PLUGINS_AT=git@$(shell pwd) BRZ_PLUGIN_PATH=-site:-user $(DEBUGGER) $(PYTHON) $(PYTHON_OPTIONS) $(BRZ) $(BRZ_OPTIONS) selftest --subunit2 $(TEST_OPTIONS) $(TESTS) | $(SUBUNIT_FILTER) | $(SUBUNIT_FORMATTER)
 
30
 
 
31
list-failing-tests:
 
32
        $(MAKE) check SUBUNIT_FILTER="subunit-filter -F" SUBUNIT_FORMATTER=subunit-ls | grep -e "^breezy\\." | sort
 
33
 
 
34
xfail:
 
35
        $(MAKE) -s list-failing-tests > xfail
 
36
 
 
37
check-all::
 
38
        $(MAKE) check TESTS="^breezy.plugins.git. Git" SUBUNIT_FILTER=cat
 
39
 
 
40
check-verbose::
 
41
        $(MAKE) check TEST_OPTIONS=-v
 
42
 
 
43
check-one::
 
44
        $(MAKE) check TEST_OPTIONS=--one
 
45
 
 
46
check-random::
 
47
        $(MAKE) check TEST_OPTIONS="--random=now --verbose --one"
 
48
 
 
49
show-plugins::
 
50
        BRZ_PLUGINS_AT=git@$(shell pwd) $(BRZ) plugins -v
 
51
 
 
52
lint::
 
53
        $(PYLINT) -f parseable *.py */*.py
 
54
 
 
55
tags::
 
56
        $(CTAGS) -R .
 
57
 
 
58
ctags:: tags
 
59
 
 
60
coverage::
 
61
        $(MAKE) check BRZ_OPTIONS="--coverage coverage"
 
62
 
 
63
.PHONY: update-pot po/brz-git.pot
 
64
update-pot: po/brz-git.pot
 
65
 
 
66
TRANSLATABLE_PYFILES:=$(shell find . -name '*.py' \
 
67
                | grep -v 'tests/' \
 
68
                )
 
69
 
 
70
po/brz-git.pot: $(PYFILES) $(DOCFILES)
 
71
        BRZ_PLUGINS_AT=git@$(shell pwd) brz export-pot \
 
72
          --plugin=git > po/brz-git.pot
 
73
        echo $(TRANSLATABLE_PYFILES) | xargs \
 
74
        xgettext --package-name "brz-git" \
 
75
          --msgid-bugs-address "<bazaar@lists.canonical.com>" \
 
76
          --copyright-holder "Canonical Ltd <canonical-bazaar@lists.canonical.com>" \
 
77
          --from-code ISO-8859-1 --sort-by-file --join --add-comments=i18n: \
 
78
          -d brz-git -p po -o brz-git.pot
 
79
 
 
80
.PHONY: xfail