makefiles: Generate explicit rules for building mo files.
This commit is contained in:
parent
fe946f253a
commit
7f8412f253
|
@ -20,7 +20,7 @@ RCFLAGS = --nostdinc $(PORCFLAGS) $(TARGETFLAGS) $(INCLUDES) $(DEFS) $(EXTR
|
|||
IDL_GEN_C_SRCS = $(IDL_C_SRCS:.idl=_c.c) $(IDL_I_SRCS:.idl=_i.c) \
|
||||
$(IDL_P_SRCS:.idl=_p.c) $(IDL_S_SRCS:.idl=_s.c)
|
||||
|
||||
CLEAN_FILES = *.o *.a *.so *.mo *.res *.fake *.ok *.tab.[ch] *.yy.c
|
||||
CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
|
||||
CLEAN_TARGETS = $(MODULE) $(IMPORTLIB:%=lib%.@IMPLIBEXT@) $(XTEMPLATE_SRCS:.x=.h) \
|
||||
$(TESTMODULE) $(TESTMODULE_STRIPPED) $(CROSSTESTMODULE)
|
||||
|
||||
|
@ -32,7 +32,7 @@ ALLCROSSCFLAGS = $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS)
|
|||
|
||||
# Implicit rules
|
||||
|
||||
.SUFFIXES: .ok .man.in .man .po .mo @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
|
||||
.SUFFIXES: .ok .man.in .man @MAINTAINER_MODE@ .sfd .ttf .svg .ico .bmp
|
||||
|
||||
.c.ok:
|
||||
$(RUNTEST) $(RUNTESTFLAGS) $< && touch $@
|
||||
|
@ -49,9 +49,6 @@ ALLCROSSCFLAGS = $(INCLUDES) $(DEFS) -DWINE_CROSSTEST $(CPPFLAGS) $(CFLAGS)
|
|||
.svg.bmp:
|
||||
CONVERT="$(CONVERT)" ICOTOOL="$(ICOTOOL)" RSVG="$(RSVG)" $(BUILDIMAGE) $< $@
|
||||
|
||||
.po.mo:
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
# Rules for main module
|
||||
|
||||
$(MODULE) $(MODULE:%=%.so) $(MODULE:%=%.fake): $(MAINSPEC) $(OBJS) Makefile.in
|
||||
|
|
|
@ -17428,6 +17428,14 @@ then
|
|||
wine_fn_append_rule "__builddeps__: \$(ALL_MO_FILES)
|
||||
clean::
|
||||
\$(RM) \$(ALL_MO_FILES)"
|
||||
|
||||
posrc="po"
|
||||
test "$srcdir" = . || posrc="$srcdir/po"
|
||||
for i in $LINGUAS
|
||||
do
|
||||
wine_fn_append_rule "po/$i.mo: $posrc/$i.po
|
||||
\$(MSGFMT) -o \$@ $posrc/$i.po"
|
||||
done
|
||||
else
|
||||
LINGUAS=
|
||||
fi
|
||||
|
|
|
@ -3489,6 +3489,15 @@ then
|
|||
[__builddeps__: \$(ALL_MO_FILES)
|
||||
clean::
|
||||
\$(RM) \$(ALL_MO_FILES)])
|
||||
|
||||
posrc="po"
|
||||
test "$srcdir" = . || posrc="$srcdir/po"
|
||||
for i in $LINGUAS
|
||||
do
|
||||
WINE_APPEND_RULE(
|
||||
[po/$i.mo: $posrc/$i.po
|
||||
\$(MSGFMT) -o \$@ $posrc/$i.po])
|
||||
done
|
||||
else
|
||||
LINGUAS=
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue