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

« back to all changes in this revision

Viewing changes to Makefile.win

  • 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
 
WINSUBDIRS = src 
2
 
 
3
 
all: qgssvnversion.h winsubdirs
4
 
 
5
 
qgssvnversion.h:
6
 
        $(MAKE) qgssvnversion.h
7
 
 
8
 
install: all
9
 
        mkdir -p -m 755 $(prefix)
10
 
        $(MAKE) -C i18n -f Makefile install || exit 1
11
 
        $(MAKE) -C images -f Makefile install || exit 1
12
 
        $(MAKE) -C resources -f Makefile install || exit 1
13
 
        $(MAKE) -C src -f Makefile.win install || exit 1
14
 
        $(MAKE) -C doc -f Makefile install || exit 1
15
 
 
16
 
# Copy GRASS to QGIS 
17
 
cpgrass:
18
 
        mkdir -p -m 755 $(prefix)/grass/docs
19
 
#       cp    $(GRASS_BASE)/COPYING $(prefix)/grass
20
 
#       cp    $(GRASS_BASE)/AUTHORS $(prefix)/grass
21
 
#       cp    $(GRASS_BASE)/README $(prefix)/grass
22
 
        cp -r $(GRASS_BASE)/etc $(prefix)/grass
23
 
        cp -r $(GRASS_BASE)/driver $(prefix)/grass
24
 
        cp -r $(GRASS_BASE)/bin $(prefix)/grass
25
 
        cp -r $(GRASS_BASE)/scripts $(prefix)/grass
26
 
        cp -r $(GRASS_BASE)/lib/*.dll $(prefix)
27
 
        cp -r $(GRASS_BASE)/docs/html $(prefix)/grass/docs
28
 
# Qt does not support GIF by default
29
 
        if [ -f $(GRASS_BASE)/docs/html/grass.smlogo.gif ] ; then \
30
 
                convert $(GRASS_BASE)/docs/html/grass.smlogo.gif $(prefix)/grass/docs/html/grass.smlogo.png ; \
31
 
        fi
32
 
        @list=`ls $(GRASS_BASE)/docs/html/*.html`; \
33
 
        for f in $$list; do \
34
 
                cat $$f  |sed 's/grass.smlogo.gif/grass.smlogo.png/' > $(prefix)/grass/docs/html/`basename $$f` ; \
35
 
        done
36
 
        @list=`ls $(prefix)/grass_*.dll`; \
37
 
        for f in $$list; do \
38
 
                $(STRIP) $$f; \
39
 
        done
40
 
        @list=`ls $(prefix)/grass/bin/*.exe`; \
41
 
        for f in $$list; do \
42
 
                $(STRIP) $$f; \
43
 
        done
44
 
        @list=`ls $(prefix)/grass/driver/db/*.exe`; \
45
 
        for f in $$list; do \
46
 
                $(STRIP) $$f; \
47
 
        done
48
 
 
49
 
# Copy libraries
50
 
# TODO: this is not correct, we believe that all DLL are in the same 
51
 
#       directory and there are no DLL which we don't want to distribute
52
 
cplibs:
53
 
        @ldir=`echo $(LDFLAGS) | tr ' ' '\n' | grep '\-L' | sed 1q | sed 's/-L//'`; \
54
 
        cp $$ldir/../bin/*.dll $(prefix)
55
 
        @ldir=`echo $(QT_LDADD) | tr ' ' '\n' | grep '\-L' | sed 's/-L//'`; \
56
 
        cp $$ldir/../bin/*.dll $(prefix)
57
 
 
58
 
 
59
 
# Create binary package 
60
 
DATE=`date '+%y%m%d'`
61
 
VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
62
 
BINPKG=qgis-$(VERSION)-win32-$(DATE)
63
 
 
64
 
pkg:
65
 
        @ echo "Creating binary package $(BINPKG)"
66
 
        mkdir -p -m 755 $(BINPKG)
67
 
        cp -r $(prefix)/* $(BINPKG)
68
 
        (cd $(BINPKG); rm -fr grass-6.1.cvs include)
69
 
        
70
 
        zip -r $(BINPKG).zip $(BINPKG)
71
 
        
72
 
        
73
 
 
74
 
include ./Makefile.win.rules