--- drivers/Makefile.am.original 2007-02-06 16:31:24.000000000 +0900 +++ drivers/Makefile.am 2007-02-06 16:40:16.000000000 +0900 @@ -29,18 +29,16 @@ $(MAKE) -C $(LINUX_SRCDIR) V=1 modules_install\ CC="$(LINUX_CC) -I@abs_top_srcdir@ -I@abs_top_srcdir@/driver/include -I@abs_top_srcdir@/include" \ SUBDIRS="$(GPIB_ABS_MODULE_SUBDIR)" INSTALL_MOD_DIR="gpib" - $(DEPMOD) -ae /dev/gpib0: - groupadd gpib || echo "group gpib exists" for i in $(shell seq 0 15); \ do \ mknod --mode u=rw,g=rw,o= /dev/gpib$${i} c $(IBMAJOR) $${i} || exit 1; \ chown root:gpib /dev/gpib$${i}; \ done -.PHONY : device-file-check -device-file-check: /dev/gpib0 +.PHONY : device-file-check-emerge +device-file-check-emerge: /dev/gpib0 @if [ ! -c /dev/gpib0 ]; then \ if [ -a /dev/gpib0 ]; then \ echo "A file or directory called /dev/gpib0 exists but it is not" \ @@ -55,6 +53,10 @@ exit 1; \ fi +.PHONY : device-file-check +device-file-check: + + #should move this to util/templates Makefile.am when it exists /etc/gpib.conf: $(INSTALL_DATA) -D $(top_srcdir)/util/templates/gpib.conf /etc/gpib.conf