1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#!/bin/sh -eux
# A script to put various build sequences through their paces.
j=-j$(grep ^processor /proc/cpuinfo | wc -l)
echo make $j
sleep 1
while read target
do
case "$target" in
"#"* ) ;;
* )
log=$(echo mk/make $target | tr '[ ]' '[_]')
if test ! -r $log.log
then
rm -rf OBJ.*
make $j $target | tee $log.tmp
mv $log.tmp $log.log
fi
;;
esac
done <<EOF
#
# GNU's "Standard 'Makefile' Targets"
#
all
install
# install-strip
uninstall
clean
distclean
#check
#installcheck
#dist
#
# Standard combinations
#
all install clean
all install distclean
#
# Local variants
#
programs
clean-manpages manpages install-manpages clean-manpages
clean-base base install-base clean-base
install_file_list
EOF
exit 0
|