LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   a beautiful makefile (http://www.linuxquestions.org/questions/linux-general-1/a-beautiful-makefile-63663/)

jrpretz 06-04-2003 02:36 PM

a beautiful makefile
 
I'm trying to make a beautiful makefile.

I was wondering if there is anyway to get the current directory. I know pwd, but what I mean is if you're in

/home/pretz/whatever/lib

is there a shell command from which I can get just

lib

???

dorian33 06-04-2003 04:12 PM

man basename

jrpretz 06-04-2003 09:10 PM

Grazie!
 
Grazie!


All times are GMT -5. The time now is 03:05 PM.