From 5cee758069a44bc8f656eeae054c19393b7381ee Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 19 Apr 2020 16:42:32 -0700 Subject: Add install target to Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e31e63b..f53225d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ .POSIX: +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin BACKEND=qbe objdir=. @@ -84,6 +86,11 @@ bootstrap: stage2 stage3 check: all @CCQBE=./cproc-qbe ./runtests +.PHONY: install +install: all + mkdir -p $(DESTDIR)$(BINDIR) + cp $(objdir)/cproc $(objdir)/cproc-qbe $(DESTDIR)$(BINDIR) + .PHONY: qbe qbe: git submodule update --init qbe -- cgit v1.2.3