Hi, I have a problem with my makefile... the thing is that I have this script which works from shell without problem:
cd DISTR LHA -aer a "Archive" "ProgDir" cd /
But I want to do this stuff in my makefile, so I've added "; \" so it will continue in the the same shell. And my makefile looks like this:
//snip// lha : cd DISTR; \ LHA -aer a "Archive" "ProgDir"; \ cd / //snip//
But it won't work? My script however and makefile works fine except this part, what am I doing wrong, any ideas? GNU Make 3.81 on OS4.1u2.
You need something like:
----------------
----------------
Simon
Thanks for the answer :)
I tried it and various forms of it but I did not get it to work :/
For, example:
Does not work as I expected, the first dir [4] shows ram: but the second dir shows my current dir, I would like to stay in the directory given by [5] so the next dir [6] shows ram: as well. Other ideas?
__________________
m4rko.com/AMIGA
No, sorry. My makefile skills are not that great. I tried it here with the same results as you.
Simon
Thanks anyway, after further doc reading I found the solution :-)
Ending the line with "@@\" will continue the shell execution, like:
__________________
m4rko.com/AMIGA
Another method that doesn't involve using cd command would be to put a Makefile in $(DISTR) with the lha command and then put something like "make -C $(DISTR) lha" command in your main Makefile.
@salass00
Thanks, good to know :)
__________________
m4rko.com/AMIGA