[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Function not returning result
From: |
Lee Shallis |
Subject: |
Function not returning result |
Date: |
Thu, 28 Jul 2016 11:44:51 +0100 |
This is my function as it is
> define STAT_MODIFIED
> $(eval $(info $($(0)_SYS)-$(0),$(1)))
> $(eval $(0)_SH=$(call $($(0)_SYS)_$(0),$(1)))
> $(eval $(info $(0)_SH=$($(0)_SH)))
> $(eval $(0)_FAIL=0)
> $(eval $(info $(0)_FAIL=$($(0)_FAIL)))
> $(eval $(0)_VAL=$(if $(wildcard $(1)),SH,FAIL))
> $(eval $(info $(0)_VAL=$($(0)_VAL)))
> $(eval $(0)_RESULT=$(call $($(0)_SYS)_$(0)_STRIP,$(shell
> $($(0)_$($(0)_VAL)))))
> $(eval $(info $(0)_RESULT=$($(0)_RESULT)))
> $($(0)_RESULT)
> endef
>
I thought it would return the correct result via the $($(0)_RESULT)
statement at the bottom but for some reason when I try this:
> $(eval $(0)_LASTMOD=$(call STAT_MODIFIED,$($(0)_SRC)))
> $(eval $(info $(0)_LASTMOD=$($(0)_LASTMOD)))
>
The LASTMOD comes out empty despite $(eval $(info
$(0)_RESULT=$($(0)_RESULT))) displaying an actual value. I'm sure it's
something simple but for the life of me I cannot think of what it is right
now, I'm off to work soon so I figured I'd try my luck here and see if the
experts can help me at all.
--
We will die a permanent death unless we trust in Jesus Christ our saviour
and repent our sinful ways
- Function not returning result,
Lee Shallis <=