* build-aux/build-guile.sh: Support V=0,1,2.
build-aux/build-cc.sh
mes-gcc:
build-aux/build-cc.sh
mes-gcc:
# You should have received a copy of the GNU General Public License
# along with Mes. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with Mes. If not, see <http://www.gnu.org/licenses/>.
-if [ -n "$BUILD_DEBUG" ]; then
module/mescc/preprocess.scm
"
module/mescc/preprocess.scm
"
+SCRIPTS="
+build-aux/mes-snarf.scm
+scripts/mescc
+"
+
export srcdir=.
export host=$($GUILE -c "(display %host-type)")
export srcdir=.
export host=$($GUILE -c "(display %host-type)")
-#$GUILE --no-auto-compile -L guile -C guile -s build-aux/compile-all.scm $SCM_FILES
-
-for i in $SCM_FILES; do
- go=${i%%.scm}.go
- if [ $i -nt $go ]; then
- echo " GUILEC $i"
- $GUILE_TOOLS compile -L ${abs}module -L ${abs}scripts -o $go $i
- fi
-done
-
-SCRIPTS="
-scripts/mescc
-"
+GUILE_AUTO_COMPILE=0
+[ -z "$V" -o "$V" = 1 ] && LOG='build.log' || LOG=/dev/stdout
+for i in $SCM_FILES $SCRIPTS; do
go=${i%%.scm}.go
if [ $i -nt $go ]; then
go=${i%%.scm}.go
if [ $i -nt $go ]; then
- echo " GUILEC $i"
- $GUILE_TOOLS compile -L ${abs}module -L ${abs}scripts -o $go $i
+ [ -z "$V" -o "$V" = 1 ] && echo " GUILEC $i" || true
+ [ "$V" = 1 ] && set -x
+ $GUILE_TOOLS compile -L ${abs}module -L ${abs}/build-aux -L ${abs}scripts -o $go $i >>$LOG
+ { [ "$V" = 1 ] && set +x || true; } > /dev/null 2>&1