# Build binaries for this target. Unset to use default for toolchain.
BUILD_FOR = x86_64-unknown-linux-musl

# Construct cargo option for build target, if needed.
ifdef BUILD_FOR
TARGET_OPTION = --target $(BUILD_FOR)
else
TARGET_OPTION =
endif

all: build

clippy:
	cargo clippy --all-targets -- -Dwarnings

build: clippy
	cargo build --all-targets $(TARGET_OPTION)

