Date: Mon, 29 Mar 2004 00:23:11 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 296 ************************************************** Sunday 28 March 2004 Number 296 ************************************************** Subjects for today 1 UX2BS refresh : John Poltorak 2 Re: Makefile for UX2BS : Stefan.Neis at t-online.de 3 Re: Makefile for UX2BS : John Poltorak 4 Re: Makefile for UX2BS : Stefan.Neis at t-online.de **= Email 1 ==========================** Date: Sat, 27 Mar 2004 15:46:20 +0000 From: John Poltorak Subject: UX2BS refresh I've just added a simple refresh script to UX2BS which will automatically grab any changes that have been made to UX2BS. It consists of:- at echo off call ux2_env rsync -av -ut --progress 213.152.37.92::build %bld_home% 2>nul This should be called ux2_refresh.cmd and reside in \unixos2\lib. When you run it, it should grab any updates that have been made since you first installed it. Be warned that if you have changed any of your own files, they may get overwritten - this will not apply to ux2_local.cmd. I'd be interested to know how it works. -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Sat, 27 Mar 2004 21:11:10 +0100 From: Stefan.Neis at t-online.de Subject: Re: Makefile for UX2BS Hi, > If, for instance, I wanted to build Mailman, I need to make sure Python > has already been installed, and if it hasn't then build it. > > Essentially, if I specify 'make mailman', I want to check if > /usr/bin/python.exe already exists. If not proceed with 'make python' > which will invoke 'build python' followed by 'build mailman'. > > > Can anyone produce a simple Makefile to cope with this? Maybe something like this: ------ snipp ------ VPATH = /usr/bin %.exe: cd suitable_directory; build $ at # Note: that's to be a at the beginning of the previous line... mailman.exe: python.exe ------- snipp ------ Now VPATH tells GNUmake to treat files in /usr/bin like files in the current directory, so it will handle existing binaries as we want (?). If you now specify 'make mailman.exe' (note: _not_ 'make mailman') it will check if mailman.exe exists and is newer than python.exe. So if both files exist and mailman.exe is the newer one, everything is OK. If you recompiled python, you'll have a newer python.exe and it will recompile mailman.exe, if both don't exist, it will apply the first rule and change to your build directory (or whatever you specific in the place of suitable_directory) and run build python, then do the same for mailman.exe. Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Sat, 27 Mar 2004 23:29:46 +0000 From: John Poltorak Subject: Re: Makefile for UX2BS On Sat, Mar 27, 2004 at 09:11:10PM +0100, Stefan.Neis at t-online.de wrote: > Maybe something like this: > ------ snipp ------ > VPATH = /usr/bin > > %.exe: > cd suitable_directory; build $ at > # Note: that's to be a at the beginning of the previous line... > > mailman.exe: python.exe > ------- snipp ------ > > Now VPATH tells GNUmake to treat files in /usr/bin like files in > the current directory, so it will handle existing binaries as we > want (?). > If you now specify 'make mailman.exe' (note: _not_ 'make mailman') it > will check if mailman.exe exists and is newer than python.exe. So if > both files exist and mailman.exe is the newer one, everything is OK. > If you recompiled python, you'll have a newer python.exe and it will > recompile mailman.exe, if both don't exist, it will apply the first > rule and change to your build directory (or whatever you specific in > the place of suitable_directory) and run build python, then do the > same for mailman.exe. Is there any way to get make to ignore datestamps and just go by the existance of files rather than their newness with respect to the target? > Regards, > Stefan -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 4 ==========================** Date: Sun, 28 Mar 2004 14:52:49 +0100 From: Stefan.Neis at t-online.de Subject: Re: Makefile for UX2BS Hi, > Is there any way to get make to ignore datestamps and just go by the > existance of files rather than their newness with respect to the target? No, I don't think so. Newness is the whole point of make ... Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs