The cleanest way I can think of to do this is 

``` $$(PYTHON) \"$$VERSION_INFO_SCRIPT\" ```
and then in the Makefile put
```PYTHON=$(PYTHON) $(QMAKE) $(ROOT_DIR)/ground/uavobjgenerator/uavobjgenerator.pro -spec $(QT_SPEC) -r CONFIG+="debug $(UAVOGEN_SILENT)" && \```
in the place of
``` $(QMAKE) $(ROOT_DIR)/ground/uavobjgenerator/uavobjgenerator.pro -spec $(QT_SPEC) -r CONFIG+="debug $(UAVOGEN_SILENT)" && \ ```
but I suspect that there's an even better way of doing this. Perhaps @solidgoldbomb or @guilhermito knows a Makefu-ier way to do this.