Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not generate .deps on clean #279

Merged
merged 2 commits into from
Aug 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: patch svd2rust

.PHONY: patch svd2rust form check clean-rs clean-patch clean-html clean
.PRECIOUS: svd/%.svd
.PRECIOUS: svd/%.svd .deps/%.d

SHELL := /usr/bin/env bash

Expand Down Expand Up @@ -35,7 +35,7 @@ CHECK_SRCS := $(foreach crate, $(CRATES), \
$(wildcard devices/$(crate)*.yaml)))

# Turn a devices/device.yaml and svd/device.svd into svd/device.svd.patched
svd/%.svd.patched: devices/%.yaml svd/%.svd
svd/%.svd.patched: devices/%.yaml svd/%.svd .deps/%.d
python3 scripts/svdpatch.py $<

svd/%.svd.formatted: svd/%.svd.patched
Expand Down Expand Up @@ -101,4 +101,4 @@ clean: clean-rs clean-patch clean-html
@mkdir -p .deps
python3 scripts/makedeps.py $< > $@

-include $(patsubst devices/%.yaml, .deps/%.d, $(YAMLS))
-include .deps/*