Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!kth!sunic!front.se!zap From: zap@front.se (Svante Lindahl) Newsgroups: comp.unix.questions Subject: Re: help with make needed Message-ID: <477@front.se> Date: 25 Apr 89 14:54:16 GMT References: <459@front.se> Organization: Front Capital Systems, Stockholm, Sweden Lines: 17 In article <459@front.se>,I wrote: [ The target, a library, should be removed and rebuilt if the makefile has been updated. ] > Makefile: FRC > -@if newer Makefile $(TARGET) ; then rm -f $(TARGET); fi ... I got some good suggestions from Rich $alz on how to avoid the need for the newer(1L) program. This is what it looks like: Makefile: FRC -@if echo "Makefile: $(TARGET) ; @/bin/false" | make -qf - ; \ then rm -f $(TARGET) ; fi Svante.Lindahl@front.se (!-net: ...!uunet!front.se!svante) (non-mx: Svante.Lindahl%front.se@uunet.uu.net)