[ENBD] change to Makefile
Peter T. Breuer
enbd@lists.community.tummy.com
Wed, 20 Aug 2003 19:25:32 +0200 (MET DST)
"Also sprach Roberto Favaro:"
> I tried to make install but there were errors in the modules installation.
Oh ...
> I changed this line in Makefile .row 47:
>
> from
> INSTALL = install
> to
> INSTALL = install -D
Thanks!
> It creates the directory as needed.
>
> This because some times with a new kernel there is no directory created
> kernel/block .
:-). There certainly should be, if you've installed its modules. You
are saying you didn't build any block driver modules apart from enbd?
I'm flattered!
I think it's probably better to put a mkdir -p in the module-install
instructions, however.
module-install:
mkdir -p $(MODDIR)
for m in enbd.o enbd_ioctl.o enbd_bufferwr.o enbd_raw.o; do \
$(INSTALL) $(BUILD)/$$m $(MODDIR)/$$m; \
done
I don't know how universal -d is on install, and I don't understand the
definition:
-d, --directory
treat all arguments as directory names; create all
components of the specified directories
done. Thanks!
Peter