diff options
author | Michael Forney <mforney@mforney.org> | 2020-04-19 16:42:32 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2020-04-19 16:57:20 -0700 |
commit | 5cee758069a44bc8f656eeae054c19393b7381ee (patch) | |
tree | b3c6509a51ce004b2742572726a390fcc0d30bb0 /Makefile | |
parent | 9be024da84f251e0de7603fcfeb90a9746a16864 (diff) |
Add install target to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |