shithub: scc

Download patch

ref: 1a1f248fcb208d1c374b8be41bed65bcea24afae
parent: 8e8d93c0d70db35b5dbed8ea0aba54fb557bd15b
author: Quentin Rameau <quinq@fifth.space>
date: Tue Nov 16 17:08:25 EST 2021

cmd: Fix qbe new command location

--- a/src/cmd/Makefile
+++ b/src/cmd/Makefile
@@ -22,16 +22,16 @@
 
 all: $(TARGET) $(DIRS)
 
-qbe: qbe/.git
-
 qbe/.git:
 	git submodule init qbe
 	git submodule update qbe
 
-qbe/obj/qbe: qbe
+qbe: qbe/.git
 
-$(LIBEXEC)/scc/qbe: qbe/obj/qbe
-	cp qbe/obj/qbe $@
+qbe/qbe: qbe
+
+$(LIBEXEC)/scc/qbe: qbe/qbe
+	cp qbe/qbe $@
 
 $(BINDIR)/scc-nm: nm.o $(LIBMACH) $(LIBSCC)
 	$(CC) $(PROJ_LDFLAGS) nm.o -lmach -lscc -o $@