CI: Don't use multiple jobs when building under CI, so that output is consistent.
[pub/USBasp.git] / Demos / Device / LowLevel / makefile
1 #
2 # LUFA Library
3 # Copyright (C) Dean Camera, 2018.
4 #
5 # dean [at] fourwalledcubicle [dot] com
6 # www.lufa-lib.org
7 #
8
9 # Makefile to build all the LUFA Device Demos. Call with "make all" to
10 # rebuild all Device demos.
11
12 # Projects are pre-cleaned before each one is built, to ensure any
13 # custom LUFA library build options are reflected in the compiled
14 # code.
15
16 PROJECT_DIRECTORIES := $(shell ls -d */)
17
18 # This makefile is potentially infinitely recursive if something really bad
19 # happens when determining the set of project directories - hard-abort if
20 # more than 10 levels deep to avoid angry emails.
21 ifeq ($(MAKELEVEL), 10)
22 $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
23 endif
24
25 # Build each directory sequentially, even if we are building using multiple
26 # cores within each project
27 .NOTPARALLEL:
28
29 %: $(PROJECT_DIRECTORIES)
30 @echo . > /dev/null
31
32 $(PROJECT_DIRECTORIES):
33 @$(MAKE) -C $@ $(MAKECMDGOALS)
34
35 .PHONY: $(PROJECT_DIRECTORIES)