#! /bin/sh modulesfile=modules topdir=.. output=$topdir/Makefile cat > $output <> $output <-all build the complete module" @echo "-libsrc-all build the module's libraries" @echo "-install install the module" @echo "-install-lib install the module's libraries" @echo "-check build and run the module's tests, not including exhaustive tests" @echo "-check-exhaustive build and run the module's tests, including exhaustive tests" @echo "" @echo "The following modules are available:" @echo "" @echo "$modules" EOF for module in config $modules; do cat >> $output <> $output if test $tag = dependencies ; then echo " -(cd config && \$(MAKE) ${tag})" >> $output fi for module in $modules; do echo " (cd ${module} && \$(MAKE) ${tag})" >> $output done if test $tag != dependencies ; then echo " (cd doxygen && \$(MAKE) ${tag})" >> $output echo " -(cd config && \$(MAKE) ${tag})" >> $output fi if test $tag = clean ; then echo " rm -f \$(TRASH)" >> $output elif test $tag = distclean ; then echo " rm -f \$(TRASH)" >> $output fi echo >> $output done output=$topdir/configure cat > $output <&2 exit 1 fi (cd \$module && ./configure \$* ) || exit 1 done fi EOF chmod 755 $output