what is the use of ..
in linux scripting and in the following makefile?
MODULE =
EQUALIZER = ..
SRCS =
include ${EQUALIZER}/xyz.mak
include ${EQUALIZER}/pqr.mak
what is the use of ..
in linux scripting and in the following makefile?
MODULE =
EQUALIZER = ..
SRCS =
include ${EQUALIZER}/xyz.mak
include ${EQUALIZER}/pqr.mak
Looks like this makefile includes two files (xyz.mak
and pqr.mak
) from its parent directory.
That seems certainly useful to me.
..
refers to the parent directory whereever the program 'is' in the directory structure. If you would just start with /
you would count from the root of the filesystem. And hardcoding a full path /abc/def/ghi/xyz.mak
would mean you have to have the Makefile in a subdirectory of /abc/def/ghi/
for things to work. This make things more flexible.
– Anthon
May 15 '13 at 11:19
.
or..
means, see http://unix.stackexchange.com/questions/21847/when-you-type-ls-a-what-is-the-significance-of-and for instance – Mat May 15 '13 at 10:30./executable
,../executable
, or/somedirectory/anotherdirectory/executable
. – May 15 '13 at 12:00