From 7531db79df2ce206b7978f4e85feeb3e7933ee7f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 8 Sep 2006 13:55:13 +0000 Subject: r18267: print out the failing command for .ho files too metze (This used to be commit 25dc4557fff940aa4cc46df59f4c5a72b7518117) --- source4/main.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source4/main.mk b/source4/main.mk index 1463438890..314d3587c2 100644 --- a/source4/main.mk +++ b/source4/main.mk @@ -318,10 +318,6 @@ unused_macros: .SUFFIXES: .x .c .et .y .l .d .o .h .h.gch .a .so .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml .8 .8.xml .ho .idl .hd -.c.ho: - @echo "Compiling $< with host compiler" - @$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@ - .c.d: @echo "Generating dependencies for $<" @$(CC) -M -MG -MP -MT $(<:.c=.o) -MT $@ `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@ @@ -345,6 +341,13 @@ include/includes.d: include/includes.h echo "$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@" 1>&2;\ $(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ >/dev/null 2>&1 +.c.ho: + @echo "Compiling $< with host compiler" + @$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@ && exit 0;\ + echo "The following command failed:" 1>&2;\ + echo "$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@" 1>&2;\ + $(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@ >/dev/null 2>&1 + .h.h.gch: @echo "Precompiling $<" @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ -- cgit