Don't bother running scripts on .mod.c files.
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 31 Jul 2007 13:53:08 +0000 (13:53 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 31 Jul 2007 13:53:08 +0000 (13:53 +0000)
Makefile.am

index a227b51d480b12d1f5db0a4b23019e750dfbf636..f2a0567de5388f200dc476c49c36300c772c8624 100644 (file)
@@ -71,13 +71,16 @@ dev:
        done;
 
 Documentation/comedi/drivers.txt Documentation/comedi/devices.txt:
-       (for each in comedi/drivers/*.c;do scripts/dump_doc $$each;done >Documentation/comedi/drivers.txt)
-       scripts/doc_devlist Documentation/comedi/drivers.txt | sort >Documentation/comedi/devices.txt
+       (for each in `find $(srcdir)/comedi/drivers -name "*\.c" | $(GREP) -v mod\.c`;do $(srcdir)/scripts/dump_doc $$each;\
+               done >$(builddir)/Documentation/comedi/drivers.txt)
+       $(srcdir)/scripts/doc_devlist $(builddir)/Documentation/comedi/drivers.txt | sort >\
+               $(builddir)/Documentation/comedi/devices.txt
 
 moo:
-       (cd comedi/drivers;for each in *.c;do ../../scripts/check_driver $$each;done >../../drivers.check)
-       (grep '^.:' drivers.check >drivers.summary)
-       
+       (for each in `find $(srcdir)/comedi/drivers -name "*\.c" | $(GREP) -v mod\.c`;\
+               do $(srcdir)/scripts/check_driver $$each;done >$(builddir)/drivers.check)
+       ($(GREP) '^.:' $(builddir)/drivers.check >$(builddir)/drivers.summary)
+
 DISTCLEANFILES = modtool
 
 install-data-hook: