--- Makefile.ORIG Fri Apr 5 12:23:28 2002 +++ Makefile Fri Apr 5 12:44:46 2002 @@ -39,7 +39,11 @@ INSTALL = /usr/bin/install DESTDIR = /. BINDIR = /sbin -MANDIR = /usr/share/man/man8 +MKDIRS = /bin/mkdir -f +SHELL = /bin/sh +MAN8DIR = /usr/share/man/man8 +MAN5DIR = /usr/share/man/man5 +MAN4DIR = /usr/share/man/man4 OBJS = mdadm.o config.o mdstat.o ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Monitor.o dlink.o Kill.o Query.o @@ -59,12 +63,31 @@ $(OBJS) : mdadm.h -install : mdadm mdadm.8 +install : mdadm mdadm.8 mdadm.conf.5 md.4 + $(INSTALL) $(STRIP) -m 755 mdadm $(DESTDIR)/$(BINDIR) - $(INSTALL) -m 644 mdadm.8 $(DESTDIR)/$(MANDIR) + +# install the mdadm.8 man page + -if [ -n "$(MAN8DIR)" ]; then \ + test -d $(MAN8DIR) || $(SHELL) ${MKDIRS} $(MAN8DIR) ; \ + fi + $(INSTALL) -m 644 mdadm.8 $(DESTDIR)/$(MAN8DIR) + +# install the mdadm.conf.5 man page + -if [ -n "$(MAN5DIR)" ]; then \ + test -d $(MAN5DIR) || $(SHELL) ${MKDIRS} $(MAN5DIR) ; \ + fi + $(INSTALL) -m 644 mdadm.conf.5 $(DESTDIR)/$(MAN5DIR) + +# install the md.4 man page + -if [ -n "$(MAN4DIR)" ]; then \ + test -d $(MAN4DIR) || $(SHELL) ${MKDIRS} $(MAN4DIR) ; \ + fi + $(INSTALL) -m 644 md.4 $(DESTDIR)/$(MAN4DIR) + clean : - rm -f mdadm $(OBJS) core mdadm.man + rm -f mdadm $(OBJS) core mdadm.man md.man mdadm.conf.man dist : clean ./makedist - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html