errorcodexero / robotdev

Development repository for all new robot code and including older robot code
1 stars 0 forks source link

This is the new make file build structure for robot development.

This structure ...

The layout of this repository is

robotdev


At the top level of a robot (e.g. robots/theremin)

make CONFIG=cfg

make CONFIG=cfg tests

make CONFIG=cfg robotsw

make CONFIG=cfg deploy


Within a subdirectory of a robot,

make CONFIG=cfg

make CONFIG=cfg tests

make CONFIG=cfg deploy

--------------------------------------------------------------1

Notes: For all make targets, the CONFIG option must be specified. The config option can be 'debug' or 'release' with no quotes.

By default a short message indicating build steps is displayed. If VERBOSE=1 is set on the make invocation then the full build command line is displayed. (e.g. make CONFIG=debug VERBOSE=1)

Running a 'tests' target requires the dependencies be generated, but building tests does not generate them. Therefore, the robot target must be built in a given directory first then the tests will have the needed dependency files.