2016-06-04 11:58:09 +00:00
|
|
|
toml = $@/Cargo.toml
|
|
|
|
bin = $@/target/debug/$@
|
2016-06-04 02:14:09 +00:00
|
|
|
|
2016-07-27 17:29:34 +00:00
|
|
|
doc-crate-toml=./.imag-documentation/Cargo.toml
|
|
|
|
|
2016-06-04 02:14:09 +00:00
|
|
|
default: all
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
2016-06-04 11:58:09 +00:00
|
|
|
all: imag-counter imag-link imag-notes imag-store imag-tag imag-view
|
2016-06-04 02:14:09 +00:00
|
|
|
|
2016-06-04 11:58:09 +00:00
|
|
|
imag-%: prep
|
2016-06-04 02:14:09 +00:00
|
|
|
cargo build --manifest-path $(toml)
|
|
|
|
cp $(bin) out/
|
|
|
|
|
2016-07-27 17:29:34 +00:00
|
|
|
lib-doc:
|
|
|
|
cargo build --manifest-path $(doc-crate-toml)
|
|
|
|
|
2016-06-04 02:14:09 +00:00
|
|
|
prep:
|
|
|
|
mkdir -p out/
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf out/
|