# Welcome to APBTeam repository! # # This Makefile will compile all projects used for a simulated environment. # To do it, use: # # make all # # You can limit to compile only host version (no AVR) using: # # make host # # To define environment to be used for python scripts, use: # # eval $(make env) # DIRS = \ digital/asserv/src/asserv \ digital/mimot/src/asserv \ digital/mimot/src/dirty \ digital/beacon/src/stub \ digital/io/src \ digital/io-hub/src/robospierre \ digital/io-hub/src/guybrush PYTHON_DIRS = \ digital/dev2/tools \ digital/asserv/tools \ digital/mimot/tools \ digital/beacon/tools \ digital/io/tools \ digital/io-hub/tools \ host help: @sed -n 's/^# \?//p' < Makefile all host clean: $(foreach dir,$(DIRS),$(MAKE) -C $(dir) $@ && ) true space := space += env: @echo 'b=$(CURDIR); export b;' @echo 'PYTHONPATH=$(subst $(space),:,$(PYTHON_DIRS:%=$$b/%)); export PYTHONPATH;' @echo '# Run as "eval $$(make env)"' .PHONY: help all host env