diff --git a/wmake/rules/General/transform b/wmake/rules/General/transform index ae24764492..39bb774ca1 100644 --- a/wmake/rules/General/transform +++ b/wmake/rules/General/transform @@ -1,5 +1,7 @@ #----------------------------*- makefile-gmake -*------------------------------ +WMKDEP_FLAGS := -eWM_PROJECT_DIR -eWM_THIRD_PARTY_DIR + ifneq ("$(WM_QUIET)","") E=@ define QUIET_MESSAGE @@ -7,6 +9,7 @@ ifneq ("$(WM_QUIET)","") endef define VERBOSE_MESSAGE endef + WMKDEP_FLAGS += -q else E= define QUIET_MESSAGE @@ -28,7 +31,6 @@ $(OBJECTS_DIR)/%.dep : % $(call QUIET_MESSAGE,wmkdep,$( 2) { outputFile = (argv[i] + 2); @@ -414,6 +420,7 @@ int main(int argc, char* argv[]) EXENAME ": could not open file '%s' for output: %s\n", outputFile, strerror(errno) ); + fflush(stderr); return 1; } @@ -427,6 +434,7 @@ int main(int argc, char* argv[]) yylex(); fputs("\n\n", stdout); + fflush(stdout); for (i = nDirectories-1; i >= 0; --i) { @@ -438,9 +446,6 @@ int main(int argc, char* argv[]) free_hashTable(visitedFiles); free_envTable(); - fflush(stdout); - fflush(stderr); - return 0; } @@ -553,20 +558,23 @@ void nextFile(const char* fileName) } } - fprintf - ( - stderr, - EXENAME ": could not open file '%s' for source file '%s'", - fileName, sourceFile - ); - if (nDirectories) + if (!optQuiet) { - fprintf(stderr, ": %s", strerror(errno)); + fprintf + ( + stderr, + EXENAME ": could not open file '%s' for source file '%s'", + fileName, sourceFile + ); + if (nDirectories) + { + fprintf(stderr, ": %s", strerror(errno)); + } + fputs("\n", stderr); + fflush(stderr); } - fputs("\n", stderr); fflush(stdout); - fflush(stderr); /* Only report the first occurrence */ lookUp(visitedFiles, fileName);