Nicholas Clark <nick@ccl4.org> writes: >On Wed, Jun 02, 2004 at 01:46:09PM +0100, Nick Ing-Simmons wrote: > >> The way to do it is nominate one of UNIDATAFILES (ideally the last one >> written) as _the_ dependancy. (I don't see a definition of UNIDATAFILES >> in your patch) > >While this would work, I'm not keen on this because > >1: It would force the name of the file to be hard coded in a second place in > the makefile One can play silly b****s like UNIDATAFILE = File1 UNIDATAFILES = $(UNIDATAFILE) File2 ... File6 >2: There's no guarantee that the order of writing won't change. If they all get written by one program so that earliest output file is newer than latest input file that doesn't really matter. > >> Or invent a pseudo target thus: >> >> $(UNIDATAFILES) : unidataready >> # Nothing here - the nothing happens 7 times ... >> >> unidataready : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables >> cd ..\lib\unicore && ..\$(MINIPERL) -I.. mktables > >I like this better. > >The list of files were in a patch I applied direct to the repository, Will re-sync ASAP. >that >I didn't quite get right because it broke the windows build. > >Nicholas ClarkThread Previous | Thread Next