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