Makefile 361 B

123456789101112131415161718192021222324
  1. toml = $@/Cargo.toml
  2. bin = $@/target/debug/$@
  3. doc-crate-toml=./.imag-documentation/Cargo.toml
  4. default: all
  5. .PHONY: clean
  6. all: imag-counter imag-link imag-notes imag-store imag-tag imag-view
  7. imag-%: prep
  8. cargo build --manifest-path $(toml)
  9. cp $(bin) out/
  10. lib-doc:
  11. cargo build --manifest-path $(doc-crate-toml)
  12. prep:
  13. mkdir -p out/
  14. clean:
  15. rm -rf out/