IncludeDir $(top_builddir) ; # for config.h
IncludeDir $(top_srcdir)/src ;
+actions Append
+{
+ echo $(>) >> $(<) ;
+}
+
+rule DumpVar
+{
+ for FILE in $(>)
+ {
+ Append $(<) : $(FILE) ;
+ }
+ Depends $(<) : $(>) ;
+}
+
if $(XGETTEXT) != ""
{
actions XGetText
{
- $(XGETTEXT) $(XGETTEXT_FLAGS) -o $(<) "$(>)"
+ $(XGETTEXT) $(XGETTEXT_FLAGS) -o $(<) -f $(>)
}
rule MakePot
{
if $(>) {
- XGetText $(<) : $(>) ;
- Depends $(<) : $(>) ;
+ DumpVar $(<).in : $(>) ;
+ XGetText $(<) : $(<).in ;
+ RmTemps $(<) : $(<).in ;
+ Depends $(<) : $(<).in ;
Depends all : $(<) ;
}
}
rule MakePot
{ }
}
-
if(f) {
fclose(f);
if(!PHYSFS_addToSearchPath(dir.c_str(), 1)) {
- msg_warning << "Couldn't add '" << dir << "' to physfs searchpath: " << PHYSFS_getLastError() << std::endl;
+ log_warning << "Couldn't add '" << dir << "' to physfs searchpath: " << PHYSFS_getLastError() << std::endl;
} else {
sourcedir = true;
}