[Lunar-commits] CVS: lunar-tools Makefile,1.5,1.6
Auke Kok
sofar at lunar-linux.org
Fri Oct 29 12:41:29 UTC 2004
Update of /var/cvs/lunar/lunar-tools
In directory espresso.foo-projects.org:/home/sofar/active/lunar-tools
Modified Files:
Makefile
Log Message:
Adding man page install code to makefile
Index: Makefile
===================================================================
RCS file: /var/cvs/lunar/lunar-tools/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Makefile 29 Oct 2004 12:05:08 -0000 1.5
+++ Makefile 29 Oct 2004 12:40:57 -0000 1.6
@@ -11,14 +11,23 @@
SBINDIR = /usr/sbin/
BINDIR = /usr/bin/
MANDIR = /usr/share/man/
-MANPAGES =
+MANPAGES = lnet/lnet.8
all:
install:
- mkdir -p ${SBINDIR} ;
for PROGRAM in ${PROGRAMS} ; do \
+ if [ ! -d "${SBINDIR}" ] ; then \
+ mkdir -p ${SBINDIR} ; \
+ fi ; \
install -m755 $${PROGRAM} ${SBINDIR} ; \
- done ;
+ done ; \
+ for MANPAGE in ${MANPAGES} ; do \
+ EXT=`echo "$${MANPAGE:(($${#MANPAGE}-1)):1}"` ; \
+ if [ ! -d "${MANDIR}man$$EXT" ] ; then \
+ mkdir -p ${MANDIR}man$$EXT ; \
+ fi ; \
+ install -m644 $${MANPAGE} ${MANDIR}man$$EXT/ ; \
+ done
release:
tar cjvf /tmp/lunar-tools-${VERSION}.tar.bz2 --exclude="*/CVS*" -C .. lunar-tools/ ; \
More information about the Lunar-commits
mailing list