|
@@ -40,17 +40,16 @@ 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.
|
|
|
|
|
|
-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
|
|
|
|
|
|
+As well as writing the commands into your project source file (*.bmx), you can also just add a "pre.bmk" file and it gets executed before compilation of your project. BlitzMax prioritizees "pre.projectfile.bmk" over "pre.bmk" so you can use this if you have multiple project source files in one directory with some of them requiring individual pre-compilation scripts.
|
|
|
|
|
|
## Post-Compilation Scripts
|
|
|
|
|
|
You can also get the compiler to run Lua code after it has compiled your BlitzMax source file,
|
|
|
-just add a "post.bmk" file into the same directory as your application. It will then be loaded
|
|
|
-after completion of the compilation stage, but before execution (if you chose to Run it). This can
|
|
|
+just add a "post.bmk" (or less generic "post.projectfile.bmk") file into the same directory as your application. It will then be loaded after completion of the compilation stage, but before execution (if you chose to Run it). This can
|
|
|
be useful if you want to copy files into an App Bundle, or run the exe through some compression utility, for example.
|
|
|
|
|
|
-
|
|
|
## Example 1: Increment Version Number
|
|
|
```blitzmax
|
|
|
SuperStrict
|