SHELL := /bin/bash COMPILER = rustc COMPILER_FLAGS = -O RUSTDOC = rustdoc UPX := $(shell command -v upx 2> /dev/null) .PHONY: all all: cargo build --release strip target/release/pafi ifdef UPX upx target/release/pafi endif cargo install --path . .PHONY: build build: cargo build --release strip target/release/pafi upx target/release/pafi .PHONY: run run: cargo run env .PHONY: install install: cargo install --path . .PHONY: clean clean: cargo clean