summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@samba.org>1998-10-05 02:56:31 +0000
committerAlexandre Oliva <oliva@samba.org>1998-10-05 02:56:31 +0000
commit601e5b30b55f0b59ede0c8a0176df79c8841e208 (patch)
tree39ed368695fe3a3da19445d00673f8af804139de
parentca3d1b9bf01a56755a5c248a808ffafdce3e1a82 (diff)
downloadsamba-601e5b30b55f0b59ede0c8a0176df79c8841e208.tar.gz
samba-601e5b30b55f0b59ede0c8a0176df79c8841e208.tar.bz2
samba-601e5b30b55f0b59ede0c8a0176df79c8841e208.zip
rm object files created by mkdir probes
make sure it works even if clobbering is not allowed (This used to be commit eff11b81fd4ac807cf89a56a04c5b26ee9cd8660)
-rw-r--r--source3/Makefile.in13
1 files changed, 6 insertions, 7 deletions
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
@: