i found can use ifneq in makefile , tried compare 0 , output of command stat:
@for f in `find $(path_pages) -name *.hbs`; \ ifneq "`stat -c '%y' $$f`" "0"; //some code here endif done
but in terminal i've got error: ifneq: command not found
is there different way compare or maybe i'm doing wrong?
in case don't want use make's ifneq
, because text substitution before handing on command shell, have shell loop needs different things in each iteration depending on output of shell command.
use shell if
instead:
if [ "`stat -c '%y' $$f`" != "0" ]; //some code here fi
Comments
Post a Comment