TARGETS = bare0 bare1 bare2 bare3 bare4 bare5 bare6
DEV = target/thumbv7em-none-eabihf/debug/examples/
REL = target/thumbv7em-none-eabihf/release/examples/
ELFS = $(addprefix $(DEV), $(TARGETS))
EELFS = $(addsuffix .elf, $(ELFS))

ELFSR = $(addprefix $(REL), $(TARGETS))
EELFSR = $(addsuffix .elf, $(ELFSR))
.PHONY: all

all: xargo $(EELFS) $(EELFSR) 
	
xargo:
	xargo build --examples	
	xargo build --release --examples	
		
%.elf : % 
	cp $< $@