running_raptor_with_raptor.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Running Raptor from Raptor
  2. ============================
  3. If a Function-like Makefile (FLM) needs to run raptor for some reason
  4. then it should use the $(SBS) variable to do so and MUST NOT try to run
  5. sbs directly. The problem would be that on windows, direct usage of
  6. the "sbs" command causes the bash sbs shell-script to be executed rather
  7. than sbs.bat and this does not work in the main builds done on a cluster
  8. although it might work on someones individual desktop PC.
  9. The SBS variable is included in the root interface so that no FLM needs
  10. to specify it in its own interface - it's just there.
  11. An example: in some test code the FLM generates test mmps using the
  12. EXPORT target and these can then only be built in the same build by
  13. invoking a sub-instance of raptor.
  14. mybld.inf:
  15. $(call startrule,geninf)
  16. echo -e "PRJ_MMPFILES\nmymmp.mmp\n" >$@
  17. $(call endrule,geninf)
  18. # CORRECT:
  19. mygoodbuild: mybld.inf
  20. $(call startrule,dobuild)
  21. $(SBS) -b mybld.inf
  22. $(call endrule,dobuild)
  23. # INCORRECT:
  24. mybadbuild: mybld.inf
  25. $(call startrule,dobuild)
  26. sbs -b mybld.inf
  27. $(call endrule,dobuild)