From d67980d79f05ec580cd7e976c3811a475265bd63 Mon Sep 17 00:00:00 2001 From: John Schneiderman Date: Thu, 8 Aug 2024 20:34:19 +0200 Subject: [PATCH] Updates the instructions on how to build. --- README.md | 13 ++++++++++++- make/makefile | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8350d97..d85e3b0 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,18 @@ You should build from a subdirectory of Oscar64 so that references in the makefi * mkdir build * cd build -* make -f ../make/makefile + +To build just the compiler: + +* make -f ../make/makefile compiler + +To build just game demonstrations: + +* make -f ../make/makefile samples + +To build everything: + +* make -f ../make/makefile all ### Compiler arguments diff --git a/make/makefile b/make/makefile index bdefab6..f493a30 100644 --- a/make/makefile +++ b/make/makefile @@ -119,5 +119,5 @@ endif --prep-build-dir: - @if [[ ! -d $(srcdir) ]]; then mkdir --parents $(srcdir); fi - @if [[ ! -d $(project_dir)/bin ]]; then mkdir --parents $(project_dir)/bin; fi + @if [[ ! -d $(srcdir) ]]; then $(MKDIR_PARENT) $(srcdir); fi + @if [[ ! -d $(project_dir)/bin ]]; then $(MKDIR_PARENT) $(project_dir)/bin; fi