#!/bin/sh
+
+# $Id$
+
#############################################################################
# alibtool - a shell script to help makeing modules for AliRoot Makefile
#############################################################################
#
# modification history
# $Log$
+# Revision 1.6 2003/07/13 09:26:14 hristov
+# Transition to NewIO
+#
+# Revision 1.5 2003/05/02 15:11:52 hristov
+# Changes to avoid warnings (I.Hrivnacova)
+#
+# Revision 1.4 2002/10/14 14:57:45 hristov
+# Merging the VirtualMC branch to the main development branch (HEAD)
+#
# Revision 1.3.6.1 2002/07/09 12:24:49 alibrary
# Corrections for new MC
#
#
# This scipts is called with a primary command and a commandparameter. It generates output on stdout, so normally it is called with a redirection like
#
-# alibtool mkmoudle STEER > STEER/module.mk
+# alibtool mkmodule STEER > STEER/module.mk
#
# The command is one of the following
#
# dependF
# Makes the dependencies for the file specified as second argument (fortran files)
#
-# mkmoudle
+# mkmodule
# Creates the module.mk for the the given directory specified as the second argument.
#
# MKMOUDLE
MkDepend()
{
-rmkdepend -f- -w 3000 -- -I$ROOTSYS/cint/include $* | sed -e "s@^\(.*\)\/\(.*\)\.o:@\1\/tgt_${ALICE_TARGET}\/\2.d \1\/tgt_${ALICE_TARGET}/\\2.o:@" -e 's@^#.*$@@' -e '/^$/d'
+rmkdepend -f- -Y -w 3000 -- $* 2>/dev/null | sed -e "s@^\(.*\)\/\(.*\)\.o:@\1\/tgt_${ALICE_TARGET}\/\2.d \1\/tgt_${ALICE_TARGET}/\\2.o:@" -e 's@^#.*$@@' -e '/^$/d'
}
MkDependF()
{
-rmkdepend -f- -Y -w 3000 -- $* | sed -e "s@^\(.*\)\/\(.*\)\.o:@\1\/tgt_${ALICE_TARGET}\/\2.d \1\/tgt_${ALICE_TARGET}/\\2.o:@" -e 's@^#.*$@@' -e '/^$/d'
+rmkdepend -f- -Y -w 3000 -- $* 2>/dev/null | sed -e "s@^\(.*\)\/\(.*\)\.o:@\1\/tgt_${ALICE_TARGET}\/\2.d \1\/tgt_${ALICE_TARGET}/\\2.o:@" -e 's@^#.*$@@' -e '/^$/d'
}
MkModule()