diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-08 13:55:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:59 -0500 |
commit | 7531db79df2ce206b7978f4e85feeb3e7933ee7f (patch) | |
tree | 42b81c981f19bb40e947cdfcd469de88aa3cd4fd | |
parent | 52102bc76cdad859ba170ca96d119610efb12be2 (diff) | |
download | samba-7531db79df2ce206b7978f4e85feeb3e7933ee7f.tar.gz samba-7531db79df2ce206b7978f4e85feeb3e7933ee7f.tar.bz2 samba-7531db79df2ce206b7978f4e85feeb3e7933ee7f.zip |
r18267: print out the failing command for .ho files too
metze
(This used to be commit 25dc4557fff940aa4cc46df59f4c5a72b7518117)
-rw-r--r-- | source4/main.mk | 11 |
1 files 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 $@ |