Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] $(PWD) in makefile - wrong directory

I thought I'd try Eclipse/CDT for working with some device driver sources.

The makefile within the source directory has the conventional line(s):
all:
  make -C $(KERNELDIR) M=$(PWD) modules

and I still want to be able to use from the command line,

but I cannot get the $(PWD) to expand to the path of the source directory as it
does if you run from the command line: I just get my user home directory path.

Tried changing build command to 'make -C <source dir>', same effect,
and cd <source dir>;make  gives Exec fail.

Any suggestions ? Apologies if it's too obvious !!
Thanks,

Mike W



Back to the top