Makefile 255 B

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