syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Looking at the Win32/makefile.mk that comes with the perl source, I thought the following would work (but it doesn't):clean: if exist glversion.txt del glversion.txt if exist glversion.exe del glversion.exe if exist glversion.txt del glversion.obj
With one version of dmake that produces the following warnings (which don't prevent the build from completing successfully, but probably *do* mean that 'dmake clean' doesn't work correctly):clean: -if exist glversion.txt del glversion.txt -if exist glversion.exe del glversion.exe -if exist glversion.txt del glversion.o
With another version of dmake, however, the same section produces a fatal error which *does* prevent the build from completing successfully.dmake: Error executing 'if': No such file or directory (Ignored) dmake: Error executing 'if': No such file or directory (Ignored) dmake: Error executing 'if': No such file or directory (Ignored)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [OT] Makefiles - nmake syntax v dmake syntax
by ikegami (Patriarch) on Jul 16, 2008 at 07:37 UTC | |
by syphilis (Archbishop) on Jul 16, 2008 at 14:15 UTC | |
by ikegami (Patriarch) on Jul 16, 2008 at 19:59 UTC | |
|
Re: [OT] Makefiles - nmake syntax v dmake syntax
by BrowserUk (Patriarch) on Jul 16, 2008 at 07:55 UTC | |
by Bloodnok (Vicar) on Jul 16, 2008 at 12:07 UTC | |
|
Re: [OT] Makefiles - nmake syntax v dmake syntax
by Corion (Patriarch) on Jul 16, 2008 at 08:41 UTC | |
|
Re: [OT] Makefiles - nmake syntax v dmake syntax
by moritz (Cardinal) on Jul 16, 2008 at 08:53 UTC | |
by Corion (Patriarch) on Jul 16, 2008 at 09:07 UTC |