Apache OpenOffice (AOO) Bugzilla – Issue 71742
rm -f'ing a target and then let cp check whether the source is newer than the target doesn't make sense
Last modified: 2013-02-24 21:10:06 UTC
sdk_oo/pack/copying/makefile.mk contains recipes like: $(DESTDIRDOCU)$/DevelopersGuide$/DevelopersGuide.pdf : DevelopersGuide.pdf +-$(MKDIRHIER) $(@:d) +-rm -f $@ >& $(NULLDEV) $(MY_COPY) DevelopersGuide.pdf $(DESTDIRDOCU)$/DevelopersGuide With MY_COPY being defined in sdk_oo/util/makefile.pmk as MY_COPY=$(GNUCOPY) -u -u option in gnu cp is: "copy only when the SOURCE file is newer than the destination file or when the destination file is missing" Given that the destination file just was forcely removed, this check is superfluous. Additionally, this seems (so far) to be the only place wher gnucp is actually required. Everything else works as well with bsd cp (read: the standard cp on mac) If nobody objects, I'll make this regular $(CP) calls in cloph04. If you want to really use the existence/newer than check, then don't use "gnucp -u", but the "$^" placeholder in the recipe. (don't do the makesystem's job yourself)
i will check this for all platforms, no need to fix it on cloph04. We can simply use cp on mac.
fixed on cws jsc15 i've changed the rule to use the $(GNUCOPY) variable directly. GNUCOPY should be a simple cp cmd on Mac and should work always.
verified
closed