6666 endif
6767endif
6868
69- .PHONY : build
70- build : installreqs # # Compile and install for development
69+ .PHONY : build-dev
70+ build-dev : installreqs # # Development build (fast compile, unoptimized, with all extras)
7171 @$(SETUP_LLVM ) ; $(UNSET_CONDA ) cd python/pecos-rslib/ && uv run maturin develop --uv
7272 @$(UNSET_CONDA ) uv pip install -e " ./python/quantum-pecos[all]"
7373 @if command -v julia > /dev/null 2>&1 ; then \
@@ -85,13 +85,8 @@ build: installreqs ## Compile and install for development
8585 echo " Go not detected, skipping Go build" ; \
8686 fi
8787
88- .PHONY : build-basic
89- build-basic : installreqs # # Compile and install for development but do not include install extras
90- @$(SETUP_LLVM ) ; $(UNSET_CONDA ) cd python/pecos-rslib/ && uv run maturin develop --uv
91- @$(UNSET_CONDA ) uv pip install -e ./python/quantum-pecos
92-
9388.PHONY : build-release
94- build-release : installreqs # # Build a faster version of binaries
89+ build-release : installreqs # # Release build (optimized, portable)
9590 @$(SETUP_LLVM ) ; $(UNSET_CONDA ) cd python/pecos-rslib/ && uv run maturin develop --uv --release
9691 @$(UNSET_CONDA ) uv pip install -e " ./python/quantum-pecos[all]"
9792 @if command -v julia > /dev/null 2>&1 ; then \
@@ -110,8 +105,8 @@ build-release: installreqs ## Build a faster version of binaries
110105 fi
111106
112107.PHONY : build-native
113- build-native : installreqs # # Build a faster version of binaries with native CPU optimization
114- @$(UNSET_CONDA ) cd python/pecos-rslib/ && RUSTFLAGS=' -C target-cpu=native' \
108+ build-native : installreqs # # Release build with native CPU optimizations (fastest, not portable)
109+ @$(SETUP_LLVM ) ; $( UNSET_CONDA ) cd python/pecos-rslib/ && RUSTFLAGS=' -C target-cpu=native' \
115110 uv run maturin develop --uv --release
116111 @$(UNSET_CONDA ) uv pip install -e " ./python/quantum-pecos[all]"
117112
@@ -705,16 +700,16 @@ pip-install-uv: ## Install uv using pip and create a venv. (Recommended to inst
705700 uv sync
706701
707702.PHONY : dev
708- dev : clean build test # # Run the typical sequence of commands to check everything is running correctly
703+ dev : clean build-dev test # # Run the typical sequence of commands to check everything is running correctly
709704
710705.PHONY : devl
711706devl : dev lint # # Run the commands to make sure everything runs + lint
712707
713708.PHONY : devc
714- devc : clean build-cuda test # # Run dev sequence with CUDA support (requires CUDA Toolkit 13 )
709+ devc : clean build-cuda test # # Run dev sequence with CUDA support (requires CUDA Toolkit)
715710
716711.PHONY : devcl
717- devcl : devc lint # # Run dev sequence with CUDA support + lint (requires CUDA Toolkit 13 )
712+ devcl : devc lint # # Run dev sequence with CUDA support + lint (requires CUDA Toolkit)
718713
719714# Help
720715# ----
@@ -726,7 +721,7 @@ help: ## Show the help menu
726721 @grep -E ' ^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[36m%-22s\033[0m %s\n", $$1, $$2}'
727722 @echo " "
728723 @echo " Note: Julia and Go support is automatically detected."
729- @echo " - 'make build' will also build Julia/Go FFI if they are installed"
724+ @echo " - 'make build-dev ' will also build Julia/Go FFI if they are installed"
730725 @echo " - 'make test' will also run Julia/Go tests if they are installed"
731726 @echo " - 'make lint' checks code quality; 'make lint-fix' fixes issues"
732727 @echo " - Use 'make julia-info' or 'make go-info' for more information"
0 commit comments