Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Nov 14, 2023
1 parent 06ece95 commit 49b5eff
Showing 1 changed file with 49 additions and 22 deletions.
71 changes: 49 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,72 @@ run:
fake:
clear && cargo run --features fake_hardware -- -p ./.config

conf:
clear && cargo run -- -p ./.config
## Build Libs

libsensors:
git submodule update --init hardware/libsensors
make -C ./hardware/libsensors/ install PREFIX=./../../target/libsensors_build ETCDIR=./../../target/libsensors_build/etc

lhm:
dotnet build ./hardware/LibreHardwareMonitorWrapper/ -c Release

config:
clear && ./target/debug/fan-control -p ./config
## Packaging

package-deb:
cargo bundle --release --format deb

release:
clear && cargo run --release

## Test

fix:
cargo clippy --all --fix --allow-dirty --allow-staged
cargo fmt --all
dotnet format ./hardware/LibreHardwareMonitorWrapper/LibreHardwareMonitorWrapper.csproj

git-cache:
git rm -rf --cached .
git add .
test:
cargo test --all --all-features

expand:
clear && cargo expand
## Clean

libsensors:
git submodule update --init hardware/libsensors
make -C ./hardware/libsensors/ install PREFIX=./../../target/libsensors_build ETCDIR=./../../target/libsensors_build/etc
clean:
cargo clean

clean-libsensors:
make -C ./hardware/libsensors/ clean uninstall PREFIX=./../../target/libsensors_build ETCDIR=./../../target/libsensors_build/etc

lhm:
dotnet build ./hardware/LibreHardwareMonitorWrapper/ -c release
clean-lhm:
dotnet clean ./hardware/LibreHardwareMonitorWrapper/

clean-all: clean clean-lhm clean-libsensors





.PHONY: clean-libsensors libsensors




# Temp



run-lhm:
dotnet run --project ./hardware/LibreHardwareMonitorWrapper/ -c release
dotnet run --project ./hardware/LibreHardwareMonitorWrapper/ -c Release

test:
cargo test --all --all-features

git-cache:
git rm -rf --cached .
git add .

package-linux:
cargo bundle --release

expand:
clear && cargo expand

.PHONY: clean-libsensors libsensors

conf:
clear && cargo run -- -p ./.config

release:
clear && cargo run --release

0 comments on commit 49b5eff

Please sign in to comment.