updated PYTHON_DIST for new wxPython location.

added INTL_DIST target for i18n files when --enable-intl is used.
make install now installs any .mo files it finds in locale.
bugfix for make install being a no op with static wxBase.
libs built with __WXDEBUG__ can now be installed alongside libs built without.
locale/Makefile now autodetects which languages are supported when make allpo
is used and added allmo target.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2000-05-20 22:17:32 +00:00
parent 99f792deea
commit aaa42385ce
4 changed files with 469 additions and 404 deletions

View File

@@ -67,6 +67,8 @@ oldincludedir = /usr/include
DESTDIR = DESTDIR =
localedir = $(datadir)/locale
pkgdatadir = $(datadir)/@PACKAGE@ pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@
@@ -123,7 +125,8 @@ DEMODIR = $(WXDIR)/demos
UTILSDIR = $(WXDIR)/utils UTILSDIR = $(WXDIR)/utils
MISCDIR = $(WXDIR)/misc MISCDIR = $(WXDIR)/misc
DOCDIR = $(WXDIR)/docs DOCDIR = $(WXDIR)/docs
INTLDIR = $(WXDIR)/locale
########################## Archive name ############################### ########################## Archive name ###############################
@@ -135,6 +138,8 @@ DISTDIR = ./_dist_dir/@DISTDIR@
############################## Files ################################## ############################## Files ##################################
WX_LINGUAS = `cd $(top_srcdir)/locale && ls *.mo 2> /dev/null | sed -n 's/\.mo//p'`
# this line will include a file which defines ALL_SOURCES, ALL_OBJECTS, # this line will include a file which defines ALL_SOURCES, ALL_OBJECTS,
# ALL_DEPFILES and ALL_HEADERS variables with the complete list of .cpp, .o, # ALL_DEPFILES and ALL_HEADERS variables with the complete list of .cpp, .o,
# .d and .h/.inl files for the current toolkit # .d and .h/.inl files for the current toolkit
@@ -380,7 +385,7 @@ afminstall: preinstall
# this is the real install target: copies the library, wx-config and the # this is the real install target: copies the library, wx-config and the
# headers to the installation directory # headers to the installation directory
preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_DIR@-config preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_NAME@-config
@echo " " @echo " "
@echo " Installing wxWindows..." @echo " Installing wxWindows..."
@echo " " @echo " "
@@ -389,15 +394,15 @@ preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_D
$(INSTALL) -d $(bindir) $(INSTALL) -d $(bindir)
$(INSTALL) -d $(libdir) $(INSTALL) -d $(libdir)
$(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLKIT_DIR@-config $(bindir)/wx@TOOLKIT_DIR@-config $(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLKIT_NAME@-config $(bindir)/wx@TOOLKIT_NAME@-config
cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLKIT_DIR@-config wx-config cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLKIT_NAME@-config wx-config
$(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@ $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
$(INSTALL) -d $(libdir)/wx $(INSTALL) -d $(libdir)/wx
$(INSTALL) -d $(libdir)/wx/include $(INSTALL) -d $(libdir)/wx/include
$(INSTALL) -d $(libdir)/wx/include/wx $(INSTALL) -d $(libdir)/wx/include/wx
$(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@ $(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_NAME@
$(INSTALL_DATA) $(top_builddir)/include/wx/@TOOLKIT_DIR@/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h $(INSTALL_DATA) $(top_builddir)/include/wx/@TOOLKIT_DIR@/setup.h $(libdir)/wx/include/wx/@TOOLKIT_NAME@/setup.h
$(INSTALL) -d $(includedir)/wx $(INSTALL) -d $(includedir)/wx
@if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/@TOOLKIT_DIR@; fi @if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/@TOOLKIT_DIR@; fi
@@ -410,6 +415,14 @@ preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLKIT_D
echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \ echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
done done
$(INSTALL) -d $(localedir)
@for p in $(WX_LINGUAS); do \
$(INSTALL) -d $(localedir)/$$p; \
$(INSTALL) -d $(localedir)/$$p/LC_MESSAGES; \
$(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo; \
echo "$(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo"; \
done
preinstall_gl: $(top_builddir)/lib/@WX_TARGET_LIBRARY_GL@ preinstall_gl: $(top_builddir)/lib/@WX_TARGET_LIBRARY_GL@
@echo " " @echo " "
@echo " Installing wxWindows OpenGl add-on..." @echo " Installing wxWindows OpenGl add-on..."
@@ -445,9 +458,9 @@ uninstall:
@$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@ @$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
@$(RM) $(libdir)/@WX_LIBRARY_LINK3_GL@ @$(RM) $(libdir)/@WX_LIBRARY_LINK3_GL@
@echo " Removing helper files..." @echo " Removing helper files..."
@$(RM) $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h @$(RM) $(libdir)/wx/include/wx/@TOOLKIT_NAME@/setup.h
@$(RM) $(bindir)/wx-config @$(RM) $(bindir)/wx-config
@$(RM) $(bindir)/wx@TOOLKIT_DIR@-config @$(RM) $(bindir)/wx@TOOLKIT_NAME@-config
@$(RM) $(datadir)/wx/afm/* @$(RM) $(datadir)/wx/afm/*
@$(RM) $(datadir)/wx/gs_afm/* @$(RM) $(datadir)/wx/gs_afm/*
# FIXME: wxBase doesnt install these next 3 dirs. # FIXME: wxBase doesnt install these next 3 dirs.
@@ -458,8 +471,15 @@ uninstall:
@list='$(HEADERS)'; for p in $$list; do \ @list='$(HEADERS)'; for p in $$list; do \
$(RM) $(includedir)/wx/$$p; \ $(RM) $(includedir)/wx/$$p; \
done done
@echo " Removing i18n files..."
@-for p in $(WX_LINGUAS); do \
$(RM) $(localedir)/$$p/LC_MESSAGES/wxstd.mo; \
rmdir $(localedir)/$$p/LC_MESSAGES; \
rmdir $(localedir)/$$p; \
done
@echo " Removing directories..." @echo " Removing directories..."
@if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi @-rmdir $(localedir)
@if test -d $(libdir)/wx/include/wx/@TOOLKIT_NAME@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_NAME@; fi
@if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
@if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
@if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
@@ -1144,6 +1164,12 @@ MISC_DIST: ALL_GUI_DIST
mkdir $(DISTDIR)/misc/gs_afm mkdir $(DISTDIR)/misc/gs_afm
cp $(MISCDIR)/gs_afm/*.afm $(DISTDIR)/misc/gs_afm cp $(MISCDIR)/gs_afm/*.afm $(DISTDIR)/misc/gs_afm
INTL_DIST:
mkdir $(DISTDIR)/locale
cp $(INTLDIR)/Makefile $(DISTDIR)/locale
cp $(INTLDIR)/*.po $(DISTDIR)/locale
cp $(INTLDIR)/*.mo $(DISTDIR)/locale
MANUAL_DIST: MANUAL_DIST:
mkdir $(DISTDIR)/docs mkdir $(DISTDIR)/docs
mkdir $(DISTDIR)/docs/latex mkdir $(DISTDIR)/docs/latex
@@ -1158,35 +1184,39 @@ MANUAL_DIST:
# those files needed for the Debian source package. # those files needed for the Debian source package.
# see utils/wxPython/distrib for scripts to make a proper wxPython dist. # see utils/wxPython/distrib for scripts to make a proper wxPython dist.
PYTHON_DIST: PYTHON_DIST:
mkdir $(DISTDIR)/utils/wxPython mkdir $(DISTDIR)/wxPython
mkdir $(DISTDIR)/utils/wxPython/demo mkdir $(DISTDIR)/wxPython/contrib
mkdir $(DISTDIR)/utils/wxPython/demo/bitmaps mkdir $(DISTDIR)/wxPython/contrib/glcanvas
mkdir $(DISTDIR)/utils/wxPython/demo/data mkdir $(DISTDIR)/wxPython/contrib/glcanvas/gtk
mkdir $(DISTDIR)/utils/wxPython/distrib mkdir $(DISTDIR)/wxPython/contrib/ogl
mkdir $(DISTDIR)/utils/wxPython/lib mkdir $(DISTDIR)/wxPython/contrib/stc
mkdir $(DISTDIR)/utils/wxPython/lib/editor mkdir $(DISTDIR)/wxPython/demo
mkdir $(DISTDIR)/utils/wxPython/lib/sizers mkdir $(DISTDIR)/wxPython/demo/bitmaps
mkdir $(DISTDIR)/utils/wxPython/modules mkdir $(DISTDIR)/wxPython/demo/data
mkdir $(DISTDIR)/utils/wxPython/modules/html mkdir $(DISTDIR)/wxPython/distrib
mkdir $(DISTDIR)/utils/wxPython/modules/utils mkdir $(DISTDIR)/wxPython/src
mkdir $(DISTDIR)/utils/wxPython/modules/utils/gtk mkdir $(DISTDIR)/wxPython/src/gtk
mkdir $(DISTDIR)/utils/wxPython/src mkdir $(DISTDIR)/wxPython/wxPython
mkdir $(DISTDIR)/utils/wxPython/src/gtk mkdir $(DISTDIR)/wxPython/wxPython/lib
mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
mkdir $(DISTDIR)/wxPython/wxPython/lib/sizers
cp $(UTILSDIR)/wxPython/*.txt $(DISTDIR)/utils/wxPython cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
-cp $(UTILSDIR)/wxPython/demo/* $(DISTDIR)/utils/wxPython/demo cp $(WXDIR)/wxPython/contrib/buildall.py $(DISTDIR)/wxPython/contrib
-cp $(UTILSDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/utils/wxPython/demo/bitmaps -cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
-cp $(UTILSDIR)/wxPython/demo/data/* $(DISTDIR)/utils/wxPython/demo/data cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
cp $(UTILSDIR)/wxPython/distrib/build.py $(DISTDIR)/utils/wxPython/distrib -cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
cp $(UTILSDIR)/wxPython/lib/*.py $(DISTDIR)/utils/wxPython/lib -cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
cp $(UTILSDIR)/wxPython/lib/editor/*.py $(DISTDIR)/utils/wxPython/lib/editor -cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
cp $(UTILSDIR)/wxPython/lib/sizers/*.py $(DISTDIR)/utils/wxPython/lib/sizers -cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
-cp $(UTILSDIR)/wxPython/modules/html/* $(DISTDIR)/utils/wxPython/modules/html -cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
-cp $(UTILSDIR)/wxPython/modules/utils/* $(DISTDIR)/utils/wxPython/modules/utils cp $(WXDIR)/wxPython/distrib/build.py $(DISTDIR)/wxPython/distrib
cp $(UTILSDIR)/wxPython/modules/utils/gtk/utils.* $(DISTDIR)/utils/wxPython/modules/utils/gtk -cp $(WXDIR)/wxPython/src/* $(DISTDIR)/wxPython/src
-cp $(UTILSDIR)/wxPython/src/* $(DISTDIR)/utils/wxPython/src cp $(WXDIR)/wxPython/src/gtk/*.py $(DISTDIR)/wxPython/src/gtk
cp $(UTILSDIR)/wxPython/src/gtk/*.py $(DISTDIR)/utils/wxPython/src/gtk cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
cp $(UTILSDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/utils/wxPython/src/gtk cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
cp $(WXDIR)/wxPython/wxPython/lib/sizers/*.py $(DISTDIR)/wxPython/wxPython/lib/sizers
distclean: distclean:
$(RM) -r _dist_dir $(RM) -r _dist_dir

704
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1910,11 +1910,18 @@ else
TOOLKIT_DIR="os2" TOOLKIT_DIR="os2"
fi fi
dnl the (base) name of the library and support files for this toolkit
if test "$wxUSE_DEBUG_FLAG" = "yes"; then
TOOLKIT_NAME="${TOOLKIT_DIR}d"
else
TOOLKIT_NAME="${TOOLKIT_DIR}"
fi
dnl the symbol which allows conditional compilation for the given toolkit dnl the symbol which allows conditional compilation for the given toolkit
TOOLKIT_DEF="-D__WX${TOOLKIT}__" TOOLKIT_DEF="-D__WX${TOOLKIT}__"
dnl the name of the (libtool) library dnl the name of the (libtool) library
WX_LIBRARY="wx_${TOOLKIT_DIR}" WX_LIBRARY="wx_${TOOLKIT_NAME}"
dnl the sources, their dependenices and the headers dnl the sources, their dependenices and the headers
ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
@@ -1950,7 +1957,16 @@ fi
else else
USE_GUI=0 USE_GUI=0
dnl this may be (almost) unneccesary for wxBase now we use TOOLKIT_NAME
TOOLKIT_DIR="base" TOOLKIT_DIR="base"
dnl the base name of the library and wxXXX-config files
if test "$wxUSE_DEBUG_FLAG" = "yes"; then
TOOLKIT_NAME="${TOOLKIT_DIR}d"
else
TOOLKIT_NAME="${TOOLKIT_DIR}"
fi
TOOLKIT_DEF="-D__WXBASE__" TOOLKIT_DEF="-D__WXBASE__"
dnl the sources, their dependenices and the headers dnl the sources, their dependenices and the headers
@@ -1962,7 +1978,7 @@ else
fi fi
dnl building wxBase only dnl building wxBase only
WX_LIBRARY="wxbase" WX_LIBRARY="wx_${TOOLKIT_NAME}"
PORT_FILES="src/files.lst" PORT_FILES="src/files.lst"
RPM_FILES="src/rpmfiles.lst" RPM_FILES="src/rpmfiles.lst"
@@ -2016,8 +2032,8 @@ if test "$wxUSE_SHARED" = "yes"; then
SHARED_LD="${CXX} -b -o" SHARED_LD="${CXX} -b -o"
PIC_FLAG="+Z" PIC_FLAG="+Z"
fi fi
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_DIR}_gl.sl" WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
if test "$wxUSE_OPENGL" = "yes"; then if test "$wxUSE_OPENGL" = "yes"; then
WX_ALL_INSTALLED="preinstall_gl" WX_ALL_INSTALLED="preinstall_gl"
WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
@@ -2159,12 +2175,20 @@ else
dnl set target to static dnl set target to static
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
if test "$wxUSE_OPENGL" = "yes"; then if test "$wxUSE_OPENGL" = "yes"; then
WX_ALL_INSTALLED="preinstall_gl" WX_ALL_INSTALLED="preinstall_gl"
WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
else else
WX_ALL="${WX_LIBRARY_NAME_STATIC}" WX_ALL="${WX_LIBRARY_NAME_STATIC}"
fi fi
dnl give static wxBase build a working install target
if test "$wxUSE_GUI" = "no"; then
dnl we're here because WX_ALL_INSTALLED is empty, but play safe anyway
WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
fi
WX_TARGET_LIBRARY_TYPE="a" WX_TARGET_LIBRARY_TYPE="a"
fi fi
@@ -2919,6 +2943,7 @@ if test "$wxUSE_INTL" = "yes" ; then
else else
AC_DEFINE(wxUSE_INTL) AC_DEFINE(wxUSE_INTL)
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
GUIDIST="$GUIDIST INTL_DIST"
fi fi
fi fi
@@ -3782,6 +3807,7 @@ AC_SUBST(AFMINSTALL)
AC_SUBST(TOOLKIT) AC_SUBST(TOOLKIT)
AC_SUBST(TOOLKIT_DEF) AC_SUBST(TOOLKIT_DEF)
AC_SUBST(TOOLKIT_DIR) AC_SUBST(TOOLKIT_DIR)
AC_SUBST(TOOLKIT_NAME)
AC_SUBST(TOOLKIT_INCLUDE) AC_SUBST(TOOLKIT_INCLUDE)
dnl what to compile dnl what to compile
@@ -3878,11 +3904,11 @@ AC_OUTPUT([
], ],
[ [
chmod +x wx-config chmod +x wx-config
mv wx-config wx${TOOLKIT_DIR}-config mv wx-config wx${TOOLKIT_NAME}-config
${LN_S} wx${TOOLKIT_DIR}-config wx-config ${LN_S} wx${TOOLKIT_NAME}-config wx-config
dnl the debian installer wants setup.h to be in the lib subdir dnl the debian build process wants setup.h in the lib subdir so we
dnl so we *copy* it there dnl can pretend wxWin is already installed, so we *copy* it there
if test ! -d lib; then if test ! -d lib; then
mkdir lib mkdir lib
@@ -3896,11 +3922,11 @@ AC_OUTPUT([
if test ! -d lib/wx/include/wx; then if test ! -d lib/wx/include/wx; then
mkdir lib/wx/include/wx mkdir lib/wx/include/wx
fi fi
if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
mkdir lib/wx/include/wx/${TOOLKIT_DIR} mkdir lib/wx/include/wx/${TOOLKIT_NAME}
fi fi
if test -f setup.h; then if test -f setup.h; then
cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
fi fi
dnl *move* setup.h to its final place dnl *move* setup.h to its final place
@@ -3921,6 +3947,7 @@ AC_OUTPUT([
], ],
[ [
TOOLKIT_DIR="${TOOLKIT_DIR}" TOOLKIT_DIR="${TOOLKIT_DIR}"
TOOLKIT_NAME="${TOOLKIT_NAME}"
LN_S="${LN_S}" LN_S="${LN_S}"
] ]
) )

View File

@@ -3,7 +3,11 @@
# this makefile may be invoked to build either wxstd.po or any lang.mo # this makefile may be invoked to build either wxstd.po or any lang.mo
WX_LANGUAGES = cs.po da.po de.po fi.po fr.po # Autodetect the languages we support. Currently this relies on make
# being called with this dir as the cwd, but if we generate this file
# with configure an explicit path should be specified -- RL.
WX_LINGUAS := `ls *.po 2> /dev/null | sed -n 's/\(wxstd\)\?\.po//p'`
# the programs we use (TODO: use configure to detect them) # the programs we use (TODO: use configure to detect them)
MSGFMT=msgfmt MSGFMT=msgfmt
@@ -27,14 +31,18 @@ wxstd.po:
find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
allpo: update $(WX_LANGUAGES) allpo: force-update
@-for t in $(WX_LINGUAS); do $(MAKE) $$t.po; done
update: allmo:
@for t in $(WX_LINGUAS); do $(MAKE) $$t.mo; done
force-update:
$(RM) wxstd.po $(RM) wxstd.po
# targets depending on this one will be always remade # targets depending on this one will be always remade
FORCE: FORCE:
.PHONY: allpo update .PHONY: allpo allmo force-update
# $Id$ # $Id$