I mostly figured this out, both the docs issue and the module building issue.

As for docs, the `nodocs` option is completely ignored. When I fixed that, I 
get:

# some clean-up
rm -f 
/home/ntu/linuxcnc/debian/tmp/usr/share/doc/linuxcnc/examples/sample-configs/*/*position*.txt
make[1]: Leaving directory '/home/ntu/linuxcnc'
   debian/rules override_dh_installdocs-arch
make[1]: Entering directory '/home/ntu/linuxcnc'
# Sample configs go in `usr/share/doc/linuxcnc` (not
# `.../doc/linuxcnc`) because that's where the
# `linuxcnc` launcher script looks for them, and that's
# inconvenient to change.
dh_installdocs --doc-main-package=linuxcnc --package=linuxcnc
        install -m0755 -d debian/linuxcnc/usr/share/doc/linuxcnc
        install -p -m0644 debian/copyright 
debian/linuxcnc/usr/share/doc/linuxcnc/copyright
mkdir -p debian/linuxcnc/usr/share/doc/linuxcnc
mv debian/linuxcnc/usr/share/doc/linuxcnc/examples 
debian/linuxcnc/usr/share/doc/linuxcnc
mv: cannot stat 'debian/linuxcnc/usr/share/doc/linuxcnc/examples': No such file 
or directory
make[1]: *** [debian/rules:88: override_dh_installdocs-arch] Error 1
make[1]: Leaving directory '/home/ntu/linuxcnc'
make: *** [debian/rules:43: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit 
status 2

So I'm leaving the always-on documentation build alone for now.

As for the failing modules, the problem is that when you build LinuxCNC Debian 
packages, you're in the top directory of LinuxCNC, _not_ the src directory. In 
linuxcnc/src/Makefile, the value of M is $(PWD) however when you build Debian 
packages, this value now needs to be M="$(PWD)/src"

How to conditionally set M=$(PWD) vs. M=$(PWD)/src depending on whether 
building a Debian package or not is beyond me, but that's the issue.

Alec


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

Reply via email to