LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Shell commands in GNU make (https://www.linuxquestions.org/questions/programming-9/shell-commands-in-gnu-make-147681/)

MadCactus 02-18-2004 02:16 PM

Shell commands in GNU make
 
Was wondering, how can you put a for loop etc. into a makefile so it works?

Something like:

Code:

sub:    $(HEADERS)
          for dir in $(SUBDIRS); do @echo $$dir done

Doesn't seem to work for me although i've seen the syntax used elsewhere, all I get is an "unexpected end of file" error from bash.

Anyone got any clues?

DrOzz 02-18-2004 02:32 PM

i am sorry i don't have an answer for you, but what i do want to say to you is that you already have this thread going at the below link
http://www.linuxquestions.org/questi...hreadid=147281
and its not against the rules to bump it as its been 24 hours since you posted it, but it is against the rules
http://www.linuxquestions.org/rules.php
to double post ...
just wanted to make you aware of this ...

MadCactus 02-19-2004 04:36 AM

No probs, I just thought this forum was a beter place for it!


All times are GMT -5. The time now is 05:33 AM.