LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to issuing a alias command from within a makefile (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-issuing-a-alias-command-from-within-a-makefile-671554/)

lyngsie 09-22-2008 07:30 AM

How to issuing a alias command from within a makefile
 
Hi all,

In one of my makefile I need to execute a command that is a alias in the Linux system. When I do that it get the an error message.

The related part of the makefile lock like (in the example I just use the ll command).

env_setup:
ll

then when I do

>make env_setup

I get the following output

ll
make: execvp: ll: Permission denied
make: *** [env_setup] Error 127


So how do i issue an alias command from within a makefile?

Thanks in advance
Mogens Lyngsie.

Gethyn 09-22-2008 04:56 PM

The easiest (though maybe not the most efficient) way to do it would be just to expand out the alias.


All times are GMT -5. The time now is 04:50 AM.