~ubuntu-branches/ubuntu/trusty/ufw/trusty-proposed

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2012-04-04 12:12:25 UTC
  • mfrom: (30.1.13)
  • mto: This revision was merged to the branch mainline in revision 65.
  • Revision ID: package-import@ubuntu.com-20120404121225-pjt6j7hm3ua0q580
Tags: 0.31.1-1
* New upstream release (Closes: 663677, Closes: 625681)
* debian/control: update to standards 3.9.3
* convert to source format 3.0 (quilt)
* 0001-optimize-boot.patch: only read in /etc/ufw/ufw.conf when disabled
* debian/rules: adjust to only install the application profiles when not
  Ubuntu
* debian/po/nl.po: add Dutch translation of debconf templates. Thanks to
  Jeroen Schot (Closes: 658495)
* debian/po/da.po: add Danish translation of debconf templates. Thanks to
  Joe Dalton (Closes: 666557)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
TARBALLS = ../tarballs
8
8
TARSRC   = $(TARBALLS)/$(SRCVER)
9
9
TARDST   = $(TARBALLS)/$(SRCVER).tar.gz
 
10
PYFLAKES = $(TMPDIR)/pyflakes.out
 
11
PYFLAKES_EXE = pyflakes
10
12
 
11
13
all:
12
14
        # Use setup.py to install. See README for details
24
26
test:
25
27
        ./run_tests.sh -s
26
28
 
 
29
syntax-check: clean
 
30
        $(shell mkdir $(TMPDIR) && $(PYFLAKES_EXE) src 2>&1 | grep -v "undefined name '_'" > $(PYFLAKES))
 
31
        cat "$(PYFLAKES)"
 
32
        test ! -s "$(PYFLAKES)"
 
33
 
 
34
man-check: clean
 
35
        $(shell mkdir $(TMPDIR) 2>/dev/null)
 
36
        for manfile in `ls doc/*.8`; do \
 
37
                page=$$(basename $$manfile); \
 
38
                manout=$(TMPDIR)/$$page.out; \
 
39
                echo "Checking $$page for errors... "; \
 
40
                PAGER=cat LANG='en_US.UTF-8' MANWIDTH=80 man --warnings -E UTF-8 -l doc/$$page >/dev/null 2> "$$manout"; \
 
41
                cat "$$manout"; \
 
42
                test ! -s "$$manout" || exit 1; \
 
43
                echo "PASS"; \
 
44
        done; \
 
45
 
 
46
check: syntax-check man-check test
27
47
 
28
48
# These are only used in development
29
49
clean:
48
68
        cp -f ./tests/defaults/profiles.bad/* $(TMPDIR)/ufw/etc/ufw/applications.d
49
69
 
50
70
debug: devel
51
 
        sed -i 's/debugging = False/debugging = True/' $(TMPDIR)/ufw/lib/python/ufw/util.py
 
71
        sed -i 's/DEBUGGING = False/DEBUGGING = True/' $(TMPDIR)/ufw/lib/python/ufw/util.py
52
72
 
53
 
tarball: clean translations
 
73
tarball: syntax-check clean translations
54
74
        bzr export --format dir $(TARSRC)
55
75
        tar -zcv -C $(TARBALLS) $(EXCLUDES) -f $(TARDST) $(SRCVER)
56
76
        rm -rf $(TARSRC)