~ruther/avr-device

3b582371e46e180065120cadf0b5c618777be2a6 — Rahix 6 years ago 6c665e4
make: Add targets for individual chips

Signed-off-by: Rahix <rahix@rahix.de>
2 files changed, 6 insertions(+), 3 deletions(-)

M Makefile
M README.md
M Makefile => Makefile +5 -2
@@ 5,10 5,13 @@ CHIPS := atmega8 atmega328p atmega32u4 attiny85
PATCHES := $(foreach chip, $(CHIPS), $(wildcard patch/$(chip).yaml))
DEPS := $(foreach patch, $(PATCHES), $(patsubst patch/%.yaml, .deps/%.d, $(patch)))

.PHONY: chips deps
chips: $(foreach chip, $(CHIPS), src/devices/$(chip)/mod.rs)
.PHONY: chips deps $(CHIPS)
chips: $(CHIPS)
deps: $(DEPS)

$(foreach chip, $(CHIPS), $(eval $(chip): src/devices/$(chip)/mod.rs))

.SECONDARY:
svd/%.bare.svd: vendor/%.atdf
	@mkdir -p svd
	@echo -e "\tATDF2SVD\t$*"

M README.md => README.md +1 -1
@@ 20,7 20,7 @@ git clone https://github.com/Rahix/avr-device
cd avr-device
make
# You can build for just one specific chip using
make src/devices/<chip>/mod.rs
# make atmega32u4
# I suggest building documentation as well
cargo +nightly doc --features <chip> --open
```

Do not follow this link