From 601e5b30b55f0b59ede0c8a0176df79c8841e208 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 5 Oct 1998 02:56:31 +0000 Subject: rm object files created by mkdir probes make sure it works even if clobbering is not allowed (This used to be commit eff11b81fd4ac807cf89a56a04c5b26ee9cd8660) --- source3/Makefile.in | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'source3/Makefile.in') diff --git a/source3/Makefile.in b/source3/Makefile.in index 05d3685500..c09ba9765b 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -246,7 +246,7 @@ MAKEDIR = || exec false; \ exec false; fi || exec false .c.o: @MAINT@ .deps/.dummy - @if (: > $@) >/dev/null 2>&1; then :; else \ + @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \ dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi @echo Compiling $*.c @$(CC) -I. -I$(srcdir) $(FLAGS) -c $< -o $@ \ @@ -256,16 +256,16 @@ MAKEDIR = || exec false; \ .c.po: @MAINT@ .deps/.dummy - @if (: > $@) >/dev/null 2>&1; then :; else \ + @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \ dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi @echo Compiling $*.c with -fpic @$(CC) -I. -I$(srcdir) $(FLAGS) -fpic -c $< -o $@ \ @MAINT@ -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp bin/.dummy: - @if (: > $@) >/dev/null 2>&1; then :; else \ + @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \ dir=bin $(MAKEDIR); fi - @: > $@ # create it (what a fancy emoticon :-) + @: >> $@ || : > $@ # what a fancy emoticon! bin/smbd: $(SMBD_OBJ) bin/.dummy @echo Linking $@ @@ -448,10 +448,9 @@ $(srcdir)/include/stamp-h.in: @MAINT@ $(srcdir)/acconfig.h $(srcdir)/configure.i # automatic dependency tracking rules .deps/.dummy: - @if (: > $@) >/dev/null 2>&1; then :; else \ + @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \ dir=.deps $(MAKEDIR); fi - @: > $@ # create it (what a fancy emoticon :-) - @: > $@ # create it (what a fancy emoticon :-) + @: >> $@ || : > $@ # what a fancy emoticon! .deps/.stamp: .deps/.dummy @: -- cgit