Remove Makefile
This commit is contained in:
parent
7e1c1e127d
commit
b5e110caf4
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
build
|
||||
target
|
||||
/target
|
||||
/Cargo.lock
|
||||
|
|
26
Makefile
26
Makefile
|
@ -1,26 +0,0 @@
|
|||
RUSTC ?= rustc
|
||||
RUSTDOC ?= rustdoc
|
||||
BUILD ?= build
|
||||
LIB := $(BUILD)/$(shell $(RUSTC) --print-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) $< --out-dir $(@D) --dep-info
|
||||
|
||||
check: $(TEST) doctest
|
||||
$(TEST)
|
||||
|
||||
$(TEST): src/toml.rs
|
||||
$(RUSTC) $< --test -o $@ --dep-info
|
||||
|
||||
doctest: $(LIB)
|
||||
$(RUSTDOC) --test -L $(BUILD) src/toml.rs
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD)
|
Loading…
Reference in a new issue