LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help w install, makefile on linux (https://www.linuxquestions.org/questions/linux-newbie-8/help-w-install-makefile-on-linux-911929/)

deesar 11-04-2011 05:41 PM

Help w install, makefile on linux
 
Hi, I am an absolute newbie at linux. I am trying to install something using a makefile that looks like this
======
include Options

all:
cd $(HERE)/UA ; make
cd $(HERE)/Misc ; make
cd $(HERE)/EE ; make

Linux /bin/rm -f Options
/bin/ln -s OptionsLinux Options
/bin/rm -f SystemChoice.h
/bin/ln -s SystemLinux.h SystemChoice.h
/bin/rm -f UA/cmisc.o
cd $(HERE)/UA ; make
cd $(HERE)/Misc ; make
cd $(HERE)/EE ; make

I get the following error msg
when I do Sudo make linux
sudo make linux
/bin/rm -f Options
/bin/ln -s OptionsLinux Options
/bin/rm -f SystemChoice.h
/bin/ln -s SystemLinux.h SystemChoice.h
/bin/rm -f UA/cmisc.o
cd /UA ; make
cd: 1: can't cd to /UA
make[1]: Entering directory `/usr/local/src/makee_5.2.4-sep08'
cd /usr/local/src/makee_5.2.4-sep08/UA ; make
make[2]: Entering directory `/usr/local/src/makee_5.2.4-sep08/UA'


what could I be doing differently.
TIA

corp769 11-04-2011 07:07 PM

Since it says it can't cd to UA, always make sure it exists, and echo $HERE to make sure the path is correct. Also, I recommend you just CD to $HERE, instead of using $() to avoid confusion with your make file.

Cheers,

Josh


All times are GMT -5. The time now is 01:39 AM.