3
all: qgssvnversion.h winsubdirs
6
$(MAKE) qgssvnversion.h
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
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 ; \
32
@list=`ls $(GRASS_BASE)/docs/html/*.html`; \
34
cat $$f |sed 's/grass.smlogo.gif/grass.smlogo.png/' > $(prefix)/grass/docs/html/`basename $$f` ; \
36
@list=`ls $(prefix)/grass_*.dll`; \
40
@list=`ls $(prefix)/grass/bin/*.exe`; \
44
@list=`ls $(prefix)/grass/driver/db/*.exe`; \
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
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)
59
# Create binary package
61
VERSION=$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
62
BINPKG=qgis-$(VERSION)-win32-$(DATE)
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)
70
zip -r $(BINPKG).zip $(BINPKG)
74
include ./Makefile.win.rules