mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-17 07:48:27 +01:00
9498d044f8
- New (optional) dependency on the libconfig library, to save/load configuration files. - On Unix, the location of the configuration file respects the XDG Base Directory Specification. - The contrib system automatically fetches and builds libconfig for Windows cross-compilation - Fixed make distcheck
43 lines
1.4 KiB
Makefile
43 lines
1.4 KiB
Makefile
SUBDIRS = intl dic game utils wxwin qt po extras
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
# 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
|
|
cp $(top_builddir)/wxwin/wxeliot$(EXEEXT) $(top_builddir)/dic/compdic$(EXEEXT) $(top_builddir)/dic/listdic$(EXEEXT) $(top_builddir)/qt/eliot$(EXEEXT) $(WIN32_PACKAGE_DIR)
|
|
$(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
|
|
mkdir -p $(WIN32_PACKAGE_DIR)/locale/qt4
|
|
cp $(QT4LOCALEDIR)/*.qm $(WIN32_PACKAGE_DIR)/locale/qt4/ || true
|
|
|
|
# Copy relevant text files
|
|
for i in AUTHORS COPYING NEWS; do \
|
|
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)
|