Re: [patch] Guile conditional

2015-07-03 Thread Paul Smith
On Fri, 2015-07-03 at 08:52 +0300, Dmitry Bogatov wrote: This patch integrate them a little deeper. And, by the way (VAR != ls -A) assignment is very like this. The following two assignments is same: FOO != ls -A FOO := $(shell ls -A | sed-magic) Oh I see; you're thinking of the

Re: [patch] Guile conditional

2015-07-02 Thread Edward Welbourne
ifeq ($(shell if [ -f /my/file ] ; then echo 0; else echo 1; fi), 0) Why not: ifneq ($(wildcard /my/file),) which tests existence just as well. Of course, it does also match if /my/file is a directory or other non-file, but it's almost always sufficient, unless there's some actual

Re: [patch] Guile conditional

2015-07-02 Thread Paul Smith
On Mon, 2015-06-15 at 17:36 +0300, Dmitry Bogatov wrote: I would like to propose patch, implementing new conditional: `ifscm'. It has following syntax: ifscm (some s-expression #f) MAKE_VAR = foo endif Can't you write: ifneq ($(guile some s-sexpression),) It's

Re: [patch] Guile conditional

2015-07-02 Thread Dmitry Bogatov
* Paul Smith psm...@gnu.org [2015-07-02 14:03:22-0400] On Thu, 2015-07-02 at 20:48 +0300, Dmitry Bogatov wrote: Can't you write: ifneq ($(guile some s-sexpression),) It's not quite as clean, but it doesn't require new syntax which has its own advantages. Currently Guile

Re: [patch] Guile conditional

2015-07-02 Thread Paul Smith
On Thu, 2015-07-02 at 20:48 +0300, Dmitry Bogatov wrote: Can't you write: ifneq ($(guile some s-sexpression),) It's not quite as clean, but it doesn't require new syntax which has its own advantages. Currently Guile integration is limited to gmk-eval and is little better then

Re: [patch] Guile conditional

2015-07-02 Thread Dmitry Bogatov
* Paul Smith psm...@gnu.org [2015-07-02 11:06:53-0400] On Mon, 2015-06-15 at 17:36 +0300, Dmitry Bogatov wrote: I would like to propose patch, implementing new conditional: `ifscm'. It has following syntax: ifscm (some s-expression #f) MAKE_VAR = foo endif

[patch] Guile conditional

2015-06-15 Thread Dmitry Bogatov
Hello! I would like to propose patch, implementing new conditional: `ifscm'. It has following syntax: ifscm (some s-expression #f) MAKE_VAR = foo endif Why? Some complains, that lack of logical operations make conditionals ugly. Maybe. To me, main is that to check