Pre/post compile commands are executed just before/after the compilation of the file.
To set pre or post compile commands, right-click on the file in the Projects view and select Advanced Properties.