Browse Source

Add explanation of pre.bmk and better link to explanation of post.bmk

Matthew Forrester 4 years ago
parent
commit
78b78a3676
2 changed files with 3 additions and 2 deletions
  1. 2 1
      docs/language/pre_post_compilation_scripts.md
  2. 1 1
      docs/tools/bmk.md

+ 2 - 1
docs/language/pre_post_compilation_scripts.md

@@ -40,8 +40,9 @@ after which time you can "pop" it back to its old state. Handy for on-the-fly tw
 
 
 And "make" compiles the source file specified.
 And "make" compiles the source file specified.
 
 
-Again, the all these commands are defined in core.bmk and make.bmk
+Again, all these commands are defined in core.bmk and make.bmk
 
 
+If you add a "pre.bmk" file into the same directory as your BlitzMax source (*.bmx) file, then the Lua script in it will automatically be run when you call that source file using bmk, before the .bmx file itself is compiled.
 
 
 ## Post-Compilation Scripts
 ## Post-Compilation Scripts
 
 

+ 1 - 1
docs/tools/bmk.md

@@ -4,7 +4,7 @@ title: BlitzMax Make (bmk)
 sidebar_label: BlitzMax Make (bmk)
 sidebar_label: BlitzMax Make (bmk)
 ---
 ---
 
 
-`bmk` is used to build BlitzMax applications and modules. It scans source files for imports and build options. Next to feeding information to [`bcc`](bcc) it is also executing scripts before and after building projects (see "scripts" section).
+`bmk` is used to build BlitzMax applications and modules. It scans source files for imports and build options. Next to feeding information to [`bcc`](bcc) it is also executing scripts before and after building projects (see ["scripts" page](https://blitzmax.org/docs/en/language/pre_post_compilation_scripts/), which also explains the automated `pre.bmk` and `post.bmk` scripts).
 
 
 ## Command line syntax
 ## Command line syntax