develooper Front page | perl.perl5.porters | Postings from June 2004

Re: Smoke [5.9.2] 22881 FAIL(M) MSWin32 WinXP/.Net SP1 (x86/1 cpu)

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
June 3, 2004 09:02
Subject:
Re: Smoke [5.9.2] 22881 FAIL(M) MSWin32 WinXP/.Net SP1 (x86/1 cpu)
Message ID:
20040603160206.5209.7@llama.elixent.com
Steve Hay <steve.hay@uk.radan.com> writes:
>
>Another joyful quirk of dmake, I guess.  The following makefile 
>reproduces the problem:
>
>FILE = ..\one.txt
>all : $(FILE)
>$(FILE) :
>    cd .. && echo One>one.txt
>
>If I run "dmake ..\one.txt" from C:\Temp then C:\one.txt gets created, 
>but when I re-run the same command it runs the rule again, re-creating 
>C:\one.txt!  Needless to say nmake and GNU make both say ..\one.txt is 
>up-to-date.  I'm beginning to not like dmake very much.

This is another of those historical things. When there are no dependancies 
some makes run the rule. Easiest fix is not to lie to make - it must depend 
on something (even if as in the pseudo example it is Makefile itself and 
cmd.exe or whatever does echo.

In the UNIDATAFILES case then presumably they depend on mktables 
and possibly $(MINIPERL)


>
>Do any cunning solutions spring to mind for this one?
>
>- Steve
>
>
>------------------------------------------------
>Radan Computational Ltd.
>
>The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only.  If you have received this message in error or there are any problems, please notify the sender immediately.  The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden.  Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd.  The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.
>--- win32/makefile.mk.orig	2004-06-01 15:52:55.000000000 +0100
>+++ win32/makefile.mk	2004-06-03 10:10:02.777436500 +0100
>@@ -1290,7 +1290,12 @@
> 	$(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
> 	$(RCOPY) ..\lib $(INST_LIB)\*.*
> 
>-$(UNIDATAFILES) : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables
>+# Move the rule for making $(UNIDATAFILES) into a separate target and leave the
>+# actual rule here blank because dmake runs the rule here once for each of the
>+# files listed in $(UNIDATAFILES)
>+$(UNIDATAFILES) : make_unidatafiles
>+
>+make_unidatafiles : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables
> 	cd ..\lib\unicore && \
> 	..\$(MINIPERL) -I.. mktables


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About