~ubuntu-branches/ubuntu/vivid/libgwenhywfar/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Micha Lenk
  • Date: 2014-01-08 21:54:24 UTC
  • mfrom: (24.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140108215424-yvjxko8gbzuqxyh0
Tags: 4.9.0beta-1
* New upstream release
* streamline debian/rules with current debhelper standards by using overrides
  instead of --before and --after options.
* simplify debian/rules by only generating standard documentation instead of
  full API documentation. This should reduce the documentation to essential
  information.
* fix building twice in a row caused by unnoticed renaming of temporary build
  directory.
* Use dh-autoreconf instead of autotools-dev to fix FTBFS on ppc64el
  (closes: #734541).
* Package is compliant to Debian Policy 3.9.5 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
        DEB_BUILD_DOCS=1
7
7
endif
8
8
 
9
 
 
10
 
build-arch:     build-arch-stamp
11
 
build-arch-stamp:
12
 
        dh build --with autoreconf --before configure
 
9
override_dh_auto_configure:
13
10
        dh_auto_configure -- \
14
 
                --enable-full-doc \
15
11
                --with-guis="fox16 qt4 gtk2" \
16
12
                $(shell dpkg-buildflags --export=configure)
17
 
        dh build --after configure --before dh_auto_test
18
 
        # Skip dh_auto_test (fails without network, see http://bugs.debian.org/503181 )
19
 
        dh build --after dh_auto_test
 
13
 
 
14
override_dh_auto_build:
 
15
        dh_auto_build
20
16
        $(MAKE) -C debian/man
21
 
        touch build-arch-stamp
22
17
 
23
 
build-indep:    build-indep-stamp
24
 
build-indep-stamp:      build-arch
 
18
        # This is not an arch-indep target, as some built binaries are required to build the srcdoc
25
19
        if [ "$(DEB_BUILD_DOCS)" = "1" ]; then \
26
 
                find ./gwenhywfar4/gwenhywfar -name "*.h" > listdoc.h; \
27
20
                $(MAKE) srcdoc; \
28
21
        else \
29
22
                mkdir apidoc; \
30
23
        fi
31
 
        touch build-indep-stamp
32
24
 
33
 
build:  build-arch build-indep
 
25
override_dh_auto_test:
 
26
        # Skip dh_auto_test (fails without network, see http://bugs.debian.org/503181 )
34
27
 
35
28
override_dh_strip:
36
29
        dh_strip --dbg-package=libgwenhywfar60-dbg
37
30
 
38
 
clean:
39
 
        dh clean --with autoreconf
40
 
        rm -rvf apidoc listdoc.h gwenhywfar.tag gwenhywfar3
 
31
override_dh_auto_clean:
 
32
        rm -rvf apidoc listdoc.h gwenhywfar.tag gwenhywfar4
41
33
        $(MAKE) -C debian/man clean
 
34
        dh_auto_clean
42
35
 
43
36
%:
44
 
        dh $@
 
37
        dh $@ --with autoreconf
45
38
 
46
 
.PHONY: clean build build-arch build-indep
 
39
.PHONY: override_dh_auto_configure override_dh_auto_build override_dh_auto_test override_dh_strip override_dh_auto_clean