fork download
  1. CORE_BOARD_CONFIGS := arduino:avr:uno arduino:avr:nano
  2. BUILD_TARGETS := $(foreach cfg,$(CORE_BOARD_CONFIGS),$(foreach sketch,$(SKETCHES),$(BUILDDIR)/$(subst :,_,$(cfg))/$(notdir $(basename $(sketch))).elf))
  3. echo "$(BUILD_TARGETS)"
Success #stdin #stdout #stderr 0.01s 5268KB
stdin
Standard input is empty
stdout

	
stderr
./prog.sh: line 1: CORE_BOARD_CONFIGS: command not found
./prog.sh: line 2: CORE_BOARD_CONFIGS: command not found
./prog.sh: line 2: SKETCHES: command not found
./prog.sh: line 2: BUILDDIR: command not found
./prog.sh: line 2: cfg: command not found
./prog.sh: line 2: subst: command not found
./prog.sh: line 2: sketch: command not found
basename: missing operand
Try 'basename --help' for more information.
./prog.sh: line 2: notdir: command not found
./prog.sh: line 2: foreach: command not found
./prog.sh: line 2: foreach: command not found
./prog.sh: line 2: BUILD_TARGETS: command not found
./prog.sh: line 3: BUILD_TARGETS: command not found