qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 205221226f750700f4a0adc077c94d1185f8dd89
parent 3406a5fb2f64dc94a5fff4cb61b4c9a48a551b49
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Sun, 27 Mar 2016 19:13:34 -0400

move check rule into src/

Diffstat:
MMakefile | 5++---
Mminic/Makefile | 3++-
Msrc/Makefile | 4++--
Mtest/go.sh | 7++++---
4 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,8 +1,7 @@ -all clean: +all clean check: @make -C src $@ @make -C minic $@ -check: all - test/go.sh all + sync-papers: unison -auto papers ssh://qcar@h/data/d/ssa-doc diff --git a/minic/Makefile b/minic/Makefile @@ -7,7 +7,8 @@ $(BIN): yacc minic.y $(CC) $(CFLAGS) -o $@ y.tab.c all: $(BIN) +check: clean: rm -f yacc minic y.* -.PHONY: all clean +.PHONY: all check clean diff --git a/src/Makefile b/src/Makefile @@ -18,7 +18,7 @@ config.h: all: $(BIN) clean: rm -f $(BIN) $(OBJ) -check: - make -C .. check +check: $(BIN) + ../test/go.sh all .PHONY: all clean check syndoc diff --git a/test/go.sh b/test/go.sh @@ -1,6 +1,7 @@ #!/bin/sh -QBE=`readlink -f $0 | xargs dirname`/../src/qbe +DIR=`readlink -f $0 | xargs dirname` +QBE=$DIR/../src/qbe TMP=/tmp/qbe.zzzz @@ -41,7 +42,7 @@ once() { exit 1 fi - echo "$T... " + echo "$(basename $T)..." if ! $QBE -o $ASM $T then @@ -97,7 +98,7 @@ fi case $1 in "all") F=0 - for T in test/[!_]*.ssa + for T in $DIR/[!_]*.ssa do once $T F=`expr $F + $?`