~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
2
 
#  
3
 
# This file is free software; as a special exception the author gives
4
 
# unlimited permission to copy and/or distribute it, with or without 
5
 
# modifications, as long as this notice is preserved.
6
 
7
 
# This program is distributed in the hope that it will be useful, but
8
 
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9
 
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 
 
11
 
EXTRA_DIST = \
12
 
        AUTHORS \
13
 
        SPONSORS \
14
 
        BUGS \
15
 
        ChangeLog \
16
 
        COPYING \
17
 
        create_qm_files.sh \
18
 
        INSTALL \
19
 
        $(man1_MANS) \
20
 
        NEWS \
21
 
        qgis.spec \
22
 
        qgsconfig.h.in \
23
 
        README \
24
 
        TODO \
25
 
        update_ts_files.sh
26
 
 
27
 
man1_MANS = qgis.man 
28
 
 
29
 
docdatadir = $(datadir)/$(PACKAGE)/doc
30
 
 
31
 
docdata_DATA = AUTHORS SPONSORS
32
 
 
33
 
if WITH_UNITTESTS
34
 
TESTS = tests
35
 
endif
36
 
 
37
 
 
38
 
if HAVE_QT4
39
 
SUBDIRS = src doc tools i18n resources images $(TESTS)
40
 
endif
41
 
 
42
 
pkginclude_HEADERS = qgsconfig.h
43
 
 
44
 
UIcheck:
45
 
        @UIS=`find . -name *.ui` && \
46
 
        if [ `grep "UI version" $$UIS | sed -e '/3.1/d' -e '/3.3/d' | wc -l` -ne 0 ]; then \
47
 
                echo -e "\nWrong UI version:"; \
48
 
                grep "UI version" $$UIS | sed -e '/3.1/d' -e '/3.3/d' -e 's/:.*version="\([0-9\.]*\)".*/ is version \1/g'; \
49
 
                echo; \
50
 
                exit 1; \
51
 
        fi
52
 
 
53
 
release: UIcheck distdir
54
 
        -chmod -R a+r $(distdir)
55
 
        GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir)
56
 
        rm -f $(distdir)/qgis.spec
57
 
        sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' qgis.spec \
58
 
                        > $(distdir)/qgis.spec
59
 
        BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
60
 
        -rm -rf $(distdir)
61
 
 
62
 
BUILT_SOURCES = qgssvnversion.h
63
 
 
64
 
.PHONY : qgssvnversion.h 
65
 
qgssvnversion.h:
66
 
        @if [ "$(HAVE_SVNVERSION)" == "yes" ]; then \
67
 
          QGSSVNDEF="#define QGSSVNVERSION \"`svnversion .`\""; \
68
 
        else \
69
 
          QGSSVNDEF="#define QGSSVNVERSION \"unknown\""; \
70
 
        fi; \
71
 
        if [ "`grep QGSSVNVERSION qgssvnversion.h 2>/dev/null`" != "$$QGSSVNDEF" ]; then \
72
 
                echo $$QGSSVNDEF > qgssvnversion.h; \
73
 
        fi