2008-12-08 22:45:27 +01:00
|
|
|
SUBDIRS = intl dic game utils qt po extras
|
2005-02-06 23:18:11 +01:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2008-01-12 21:42:25 +01:00
|
|
|
|
|
|
|
# Prepare the win32 package
|
|
|
|
WIN32_PACKAGE_DIR = $(top_builddir)/eliot-$(VERSION)
|
|
|
|
|
|
|
|
.PHONY: package-win32-zip
|
|
|
|
|
|
|
|
package-win32-zip:
|
|
|
|
# Check that the working directory is not already there
|
|
|
|
@if test -e $(WIN32_PACKAGE_DIR); then \
|
|
|
|
echo '$(WIN32_PACKAGE_DIR) is in the way'; \
|
|
|
|
false; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f eliot-$(VERSION)-win32.zip
|
|
|
|
mkdir -p $(WIN32_PACKAGE_DIR)
|
|
|
|
|
|
|
|
# Copy the binaries and strip them
|
2008-12-08 22:45:27 +01:00
|
|
|
cp $(top_builddir)/dic/compdic$(EXEEXT) $(top_builddir)/dic/listdic$(EXEEXT) $(top_builddir)/qt/eliot$(EXEEXT) $(WIN32_PACKAGE_DIR)
|
2008-01-12 21:42:25 +01:00
|
|
|
$(STRIP) $(WIN32_PACKAGE_DIR)/*
|
|
|
|
|
|
|
|
# Copy the i18n files
|
|
|
|
cat $(top_srcdir)/po/LINGUAS | while read lang; do \
|
|
|
|
mkdir -p $(WIN32_PACKAGE_DIR)/locale/$${lang}/LC_MESSAGES; \
|
|
|
|
cp $(top_srcdir)/po/$${lang}.gmo $(WIN32_PACKAGE_DIR)/locale/$${lang}/LC_MESSAGES/eliot.mo; \
|
|
|
|
done
|
2008-09-03 19:28:27 +02:00
|
|
|
mkdir -p $(WIN32_PACKAGE_DIR)/locale/qt4
|
|
|
|
cp $(QT4LOCALEDIR)/*.qm $(WIN32_PACKAGE_DIR)/locale/qt4/ || true
|
2008-01-12 21:42:25 +01:00
|
|
|
|
|
|
|
# Copy relevant text files
|
2009-06-21 15:26:26 +02:00
|
|
|
for i in AUTHORS COPYING NEWS THANKS; do \
|
2008-01-12 21:42:25 +01:00
|
|
|
cp $(top_srcdir)/$$i $(WIN32_PACKAGE_DIR)/$$i.txt; \
|
|
|
|
unix2dos $(WIN32_PACKAGE_DIR)/$$i.txt; \
|
|
|
|
done
|
|
|
|
|
|
|
|
# Copy the mingw DLL
|
|
|
|
gunzip -c /usr/share/doc/mingw32-runtime/mingwm10.dll.gz > $(WIN32_PACKAGE_DIR)/mingwm10.dll
|
|
|
|
|
|
|
|
# Zip the temporary dir and remove it
|
|
|
|
zip -r -9 eliot-$(VERSION)-win32.zip $(WIN32_PACKAGE_DIR)
|
|
|
|
rm -rf $(WIN32_PACKAGE_DIR)
|