simu

Ice hockey final standings simulator
git clone https://git.inz.fi/simu
Log | Files | Refs

Makefile (359B)


      1 RUSTC = rustc
      2 RUSTFMT = rustfmt
      3 RUSTFLAGS = --edition 2024
      4 RUSTCFLAGS = --cfg 'feature="use_unsafe"'
      5 CLIPPY = clippy-driver
      6 SOURCES := simu.rs rand.rs elo.rs
      7 
      8 simu: simu.rs $(SOURCES) Makefile
      9 	$(RUSTC) $(RUSTFLAGS) $(RUSTCFLAGS) -O -o $@ $<
     10 
     11 fmt:
     12 	$(RUSTFMT) $(RUSTFLAGS) $(SOURCES)
     13 
     14 clippy:
     15 	$(CLIPPY) $(RUSTFLAGS) $(RUSTCFLAGS) -W clippy::pedantic simu.rs