~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
EXTRA_DIST = \
12
12
        AUTHORS \
 
13
        SPONSORS \
13
14
        BUGS \
14
15
        ChangeLog \
15
16
        COPYING \
16
17
        create_qm_files.sh \
17
 
        doc \
18
18
        INSTALL \
19
19
        $(man1_MANS) \
20
20
        NEWS \
28
28
 
29
29
docdatadir = $(datadir)/$(PACKAGE)/doc
30
30
 
31
 
docdata_DATA = AUTHORS
32
 
 
33
 
 
34
 
SUBDIRS = src widgets providers plugins doc tools i18n designer_plugins helpviewer
 
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
 
35
42
pkginclude_HEADERS = qgsconfig.h
36
43
 
37
44
UIcheck:
43
50
                exit 1; \
44
51
        fi
45
52
 
46
 
release: distdir
 
53
release: UIcheck distdir
47
54
        -chmod -R a+r $(distdir)
48
55
        GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir)
49
56
        rm -f $(distdir)/qgis.spec
51
58
                        > $(distdir)/qgis.spec
52
59
        BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
53
60
        -rm -rf $(distdir)
54
 
        
55
 
dist-hook:
56
 
        rm -rf $(distdir)/doc/source
57
 
        rm $(distdir)/src/*.uic.h
58
 
        rm $(distdir)/src/*.uic.cpp
59
 
        rm -rf `find $(distdir) -name CVS`
60
 
        rm $(distdir)/widgets/projectionselector/*.uic.h
61
 
 
 
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