Wierdness in LATEST CVS Makefile

peloy at ven.ra.rockwell.com peloy at ven.ra.rockwell.com
Mon Oct 19 19:13:06 GMT 1998


Luke Kenneth Casson Leighton <lkcl at switchboard.net> wrote:

> it breaks for me with "mv failed", gcc (egcs 1.0.3) on slackware 3.4.

Same here; I am using this small patch and everything works fine:

--- Makefile.in.orig	Mon Oct 19 09:15:44 1998
+++ Makefile.in	Mon Oct 19 14:52:22 1998
@@ -269,9 +269,8 @@
 	  dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
 	@echo Compiling $*.c with @PICFLAG@
 	@$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $<
-	@if ! test -f $@; then mv `basename $@` $@; fi \
+	@if ! test -f $@; then mv `basename $*.o` $@; fi \
 	@MAINT@ -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp
-	@mv $@.o $@
 
 # this is for IRIX
 .c.po32: @MAINT@ .deps/.dummy
@@ -279,9 +278,8 @@
 	  dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
 	@echo Compiling $*.c with @PICFLAG@ and -32
 	@$(CC) -32 -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $<
-	@if ! test -f $@; then mv `basename $@` $@; fi \
+	@if ! test -f $@; then mv `basename $*.o` $@; fi \
 	@MAINT@ -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp
-	@mv $@.o $@
 
 bin/.dummy:
 	@if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \


More information about the samba-ntdom mailing list