User defined function

Rajeev Bansal <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Message-ID <CAM05QodeEjUwRM6FU6oyL_16SQp1i_4X_+yb8oc1f_6qNzhv6g@mail.gmail.com>
Hi,
   I have written a small Makefile but it is not working as per my
expectations, can someone please point out what is wrong with it:

define check_defined
    @$(1)=1;
endefall:
    $(call check_defined, hello)
ifeq ($(hello),1)
    sleep 10
endif

I am expecting, when I invoke "make all" it should sleep for 10 secs but it
is not happening, what is wrong with it and how can I achieve it?

Thanks,
-Rajeev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.