qbe

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

commit e38c61d95fccd208e13dd14a31a567c3d431677a
parent c46e1ba7b564ecdced28889258051e35b5df228f
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Sun, 27 Mar 2016 18:05:27 -0400

add centralized all and clean targets

Diffstat:
MMakefile | 7++++---
Mminic/Makefile | 11++++++++---
Msrc/Makefile | 4+++-
3 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ -.PHONY: all check -all: - @make -C $@ +.PHONY: all clean check +all clean: + @make -C src $@ + @make -C minic $@ check: all test/go.sh all diff --git a/minic/Makefile b/minic/Makefile @@ -1,8 +1,13 @@ -CFLAGS=-g -Wall +BIN = minic -minic: yacc minic.y +CFLAGS += -g -Wall + +$(BIN): yacc minic.y ./yacc minic.y $(CC) $(CFLAGS) -o $@ y.tab.c + +all: $(BIN) clean: rm -f yacc minic y.* -.PHONY: clean + +.PHONY: all clean diff --git a/src/Makefile b/src/Makefile @@ -15,10 +15,12 @@ config.h: esac > $@ -.PHONY: clean check syndoc +all: $(BIN) clean: rm -f $(BIN) $(OBJ) check: make -C .. check syndoc: unison -auto doc ssh://qcar@h/data/d/ssa-doc + +.PHONY: all clean check syndoc