From 2836acc55906887320c9ae1a7d57f21875120190 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 2 Aug 2007 14:06:36 +0000 Subject: [PATCH] Got rid of use of $(builddir), since it isn't defined by some versions of auto* tools. Tweaked some obscure rules (used some gnu make extensions, but I don't really care). --- Makefile.am | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index eeab18c2..d50573d5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,17 +36,24 @@ dev: mknod -m 666 /dev/comedi$$i c 98 $$i \ ; \ done; +.PHONY: dev -Documentation/comedi/drivers.txt Documentation/comedi/devices.txt: - (for each in `find $(srcdir)/comedi/drivers -name "*\.c" | $(GREP) -v mod\.c | sort`;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 +COMEDI_DRIVER_FILES := $(shell find $(srcdir)/comedi/drivers -name '*\.c' | grep -v mod\.c | sort) -moo: - (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) +Documentation/comedi/drivers.txt: $(COMEDI_DRIVER_FILES) + for each in $(COMEDI_DRIVER_FILES); do $(srcdir)/scripts/dump_doc $$each;\ + done >Documentation/comedi/drivers.txt + +Documentation/comedi/devices.txt: Documentation/comedi/drivers.txt + $(srcdir)/scripts/doc_devlist Documentation/comedi/drivers.txt | sort >\ + Documentation/comedi/devices.txt + +drivers.check: $(COMEDI_DRIVER_FILES) + for each in $(COMEDI_DRIVER_FILES);\ + do $(srcdir)/scripts/check_driver $$each;done >drivers.check + +drivers.summary: drivers.check + $(GREP) '^.:' drivers.check >drivers.summary DISTCLEANFILES = modtool -- 2.26.2