-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
export SLURM_VERSION ?= 24.11 | ||
export TARGET ?= $(shell rustc -vV | awk '/host/{print $$2}') | ||
|
||
check: | ||
cargo clippy --all-features | ||
|
||
debug: | ||
cargo build | ||
[ "$$WITH_SLURM" = "1" ] && cargo rustc --lib --crate-type=cdylib --features slurm ||: | ||
cargo build --target $(TARGET) | ||
ifdef WITH_SLURM | ||
cargo rustc --target $(TARGET) --lib --crate-type=cdylib --features slurm | ||
endif | ||
|
||
release: | ||
cargo build --release | ||
[ "$$WITH_SLURM" = "1" ] && cargo rustc --release --lib --crate-type=cdylib --features slurm ||: | ||
cargo build --target $(TARGET) --release | ||
ifdef WITH_SLURM | ||
cargo rustc --target $(TARGET) --release --lib --crate-type=cdylib --features slurm | ||
endif | ||
|
||
deb: export WITH_SLURM := 1 | ||
deb: release | ||
cargo deb --no-build | ||
cargo deb --target $(TARGET) --no-build --multiarch foreign | ||
ifdef WITH_SLURM | ||
cargo deb --target $(TARGET) --no-build --multiarch foreign --variant spank | ||
endif | ||
|
||
rpm: export WITH_SLURM := 1 | ||
rpm: release | ||
cargo generate-rpm | ||
cargo generate-rpm --target $(TARGET) | ||
ifdef WITH_SLURM | ||
cargo generate-rpm --target $(TARGET) --variant spank | ||
endif | ||
|
||
clean: | ||
cargo clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
required spank_sybil.so min_tkt_lifetime= |
File renamed without changes.