summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..cf011a41
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,46 @@
+# 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/io/src \
+ digital/io-hub/src/robospierre \
+ digital/io-hub/src/guybrush
+
+PYTHON_DIRS = \
+ digital/dev2/tools \
+ digital/asserv/tools \
+ digital/mimot/tools \
+ digital/io/tools \
+ digital/io-hub/tools \
+ host
+
+help:
+ @sed -n 's/^# \?//p' < Makefile
+
+all host:
+ $(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