#include <hallo.h>

PS: the $k option should not only be enabled but also properly
described. Something like "This is a small trick to set $k to "k" when
.ko suffix is expected for module and leave it empty otherwise (kernel
2.4).".

Further, I suggest adding a test rule to help new maintainers:

test-modbuild: foo-source
  rm -rf tmp-modbuild
  mkdir -p tmp-modbuild
  tar -j -x -f -C tmp-modbuild debian/foo-source/usr/src/foo.tar.bz2
  cd tmp-modbuild/modules/foo && fakeroot debian/rules binary-modules
  rm -rf tmp-modbuild

Futher, I suggest replacing the "make -C drivers" and "make -C drivers
install" rules with something more self-explaining. Eg.

# now user kernel 2.6 build system to build the module
$(MAKE) -C $(KSRC) M=$(CURDIR) modules
dh_installdirs lib/modules/$(KVERS)/$(PACKAGE)
cp foo.$ko debian/$(PKGNAME)/lib/modules/$(KVERS)/$(PACKAGE)

Further, I suggest following 
http://www.joelonsoftware.com/articles/fog0000000012.html and try to package a 
such thing yourself. Just take any small module package, drop debian dir from 
it and try packaging it with dh-make in less than 15 minutes.

Eduard.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to