blob: 80eece3ffaddd838b2f01990f35fe356d39ded7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
RUSTC := rustc
BUILD := build
LIB := $(BUILD)/$(shell $(RUSTC) --crate-file-name src/toml.rs)
TEST := $(BUILD)/tomltest
all: $(LIB)
-include $(BUILD)/toml.d
-include $(BUILD)/tomltest.d
$(LIB): src/toml.rs
@mkdir -p $(@D)
$(RUSTC) -O $< --out-dir $(@D) --dep-info
check: $(TEST)
$(TEST)
$(TEST): src/toml.rs
$(RUSTC) $< --test -o $@ --dep-info
clean:
rm -rf $(BUILD)
|