scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 0240b34de955183840db86e343ffd0ee32ac2ff9
parent 47b38c5176ab09a277d1196c2ca14dfd86c3a17b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  8 Oct 2021 00:42:20 +0200

qbe: Add specific clean rule in top Makefile

As qbe is a submodule it does not have a Makefile until
git submodule init is executed, and it means that it
does not have a Makefile, so make clean will fail. For
this reason we force to have a repository ready before
going to clean the directory.

Diffstat:
Msrc/cmd/Makefile | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/cmd/Makefile b/src/cmd/Makefile @@ -57,4 +57,7 @@ $(BINDIR)/addr2line: addr2line.o $(LIBMACH) $(LIBSCC) $(BINDIR)/ar: ar.o $(DRIVER).o $(CC) $(PROJ_LDFLAGS) ar.o $(DRIVER).o -o $@ +clean: qbe/.git + git submodule deinit qbe + include deps.mk