By using BASEPWD, there's some magic I don't quite understand but here it is:

ifeq ($(BASEPWD),)
BASEPWD := $(shell pwd)
export BASEPWD
include Makefile.inc
else
include $(BASEPWD)/Makefile.inc
endif

M=$(PWD)/src needs to be set if you're building LinuxCNC kernel modules from 
the top directory of LinuxCNC. You need to be at the top level in order for the 
debian/ files to work properly.

M=$(PWD) needs to be the one set instead if you're already inside the src 
directory, otherwise you'll get: linuxcnc/src/src not found.

M=$(BASEPWD) satisfies both worlds, meaning it works from both the top level of 
the LinuxCNC directory, and inside src/

Cheers!

Alec


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to