diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,7 +1,7 @@ | |||
| 1 | # shellcheck shell=sh disable=SC2046,SC2091,SC2086,SC2155 | 1 | # shellcheck shell=sh disable=SC2046,SC2091,SC2086,SC2155 |
| 2 | # NOTE: $(VAR) in this file is MAKE syntax, not shell substitution. | 2 | # NOTE: $(VAR) in this file is MAKE syntax, not shell substitution. |
| 3 | export TARGET=x86_64-unknown-uefi | 3 | export TARGET=x86_64-unknown-uefi |
| 4 | export PROFILE=debug | 4 | export PROFILE=release |
| 5 | export OUT_DIR=target/$(TARGET)/$(PROFILE) | 5 | export OUT_DIR=target/$(TARGET)/$(PROFILE) |
| 6 | export ESP_DIR=esp | 6 | export ESP_DIR=esp |
| 7 | export KERNEL=$(OUT_DIR)/rsdos.efi | 7 | export KERNEL=$(OUT_DIR)/rsdos.efi |
| @@ -25,8 +25,8 @@ release: export OUT_DIR=target/$(TARGET)/release | |||
| 25 | release: CARGO_FLAGS=--release | 25 | release: CARGO_FLAGS=--release |
| 26 | release: all | 26 | release: all |
| 27 | 27 | ||
| 28 | # shellcheck disable=SC2034 | 28 | # CARGO_FLAGS set by PROFILE above |
| 29 | CARGO_FLAGS= | 29 | CARGO_FLAGS=--release |
| 30 | 30 | ||
| 31 | $(OUT_DIR)/rsdos.efi: $(shell find rsnix shell rsdos -name '*.rs') Cargo.toml rsnix/Cargo.toml shell/Cargo.toml rsdos/Cargo.toml | 31 | $(OUT_DIR)/rsdos.efi: $(shell find rsnix shell rsdos -name '*.rs') Cargo.toml rsnix/Cargo.toml shell/Cargo.toml rsdos/Cargo.toml |
| 32 | cargo build --package rsdos --target $(TARGET) $(CARGO_FLAGS) | 32 | cargo build --package rsdos --target $(TARGET) $(CARGO_FLAGS) |
