~ubuntu-branches/ubuntu/natty/bleachbit/natty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2009-08-27 07:24:18 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090827072418-z3qy0673d183m7h2
Tags: 0.6.2-1ubuntu1
* debian/patches/uncommon_locale:
  - Fix crash on startup with uncommon locales.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        @rm -vf MANIFEST
18
18
        make -C po clean
19
19
        @rm -vrf locale
 
20
        @rm -vfr {*/,./}*.{pychecker,pylint,pyflakes}.log
20
21
 
21
22
install:
22
23
        # "binary"
46
47
        # translations
47
48
        make -C po install DESTDIR=$(DESTDIR)
48
49
 
 
50
lint:
 
51
        for f in *py */*py; \
 
52
        do \
 
53
                echo "$$f" ; \
 
54
                pychecker "$$f" > "$$f".pychecker.log ; \
 
55
                pyflakes "$$f" > "$$f".pyflakes.log ; \
 
56
                pylint "$$f" > "$$f".pylint.log ; \
 
57
        done; \
 
58
        exit 0
 
59
 
49
60
tests:
50
61
        make -C cleaners tests
51
62
        cd bleachbit && \
52
63
        for f in `grep -l unittest *py`; \
53
64
        do \
54
65
                echo testing "$$f"; \
55
 
                python "$$f"; \
 
66
                python "$$f" -v; \
56
67
                rc=$$?; \
57
68
                [ $$rc -gt 0 ] && echo -e \\a && notify-send -u critical "error executing test for $$f" && exit 1; \
58
69
        done; \