QGIS/Makefile.win
rblazek d3bdf52c2f convert gif to png
git-svn-id: http://svn.osgeo.org/qgis/trunk@5856 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-09-22 12:40:14 +00:00

75 lines
2.2 KiB
Makefile

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