From bb57fdd905591a6c7cb677bd1b1723f281bbe081 Mon Sep 17 00:00:00 2001 From: Jonathan Moallem Date: Fri, 19 Feb 2021 18:40:18 +1100 Subject: [PATCH] Completed Makefile explanation doc for default target --- docs/MakefileExplanation.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/MakefileExplanation.md b/docs/MakefileExplanation.md index c01e9f0..15d07b6 100644 --- a/docs/MakefileExplanation.md +++ b/docs/MakefileExplanation.md @@ -177,15 +177,13 @@ $(target): $(objects) $(CXX) $(objects) -o $(target) $(linkFlags) ``` -```Makefile -all: $(target) execute clean -``` - +After this, the execute target will simply attempt to run the program from the command line with any supplied arguments. ```Makefile execute: $(target) $(ARGS) ``` +Once the application is closed, crashed, or otherwise ended, the clean command will then be run (for the appropriate platform path and command), by deleting the `/bin/` directory, including object files, dependency files and the application itself. This prepares the build system for a fresh compilation. ```Makefile clean: $(RM) $(call platformpth, $(buildDir)/*)