|
|
|
@ -3,9 +3,9 @@
|
|
|
|
|
PHETCH_RELEASE = target/release/phetch
|
|
|
|
|
PHETCH_DEBUG = target/debug/phetch
|
|
|
|
|
|
|
|
|
|
RSFILES = $(wildcard src/*.rs src/ui/*.rs)
|
|
|
|
|
RSFILES = $(wildcard src/*.rs src/**/*.rs)
|
|
|
|
|
|
|
|
|
|
.PHONY: release debug clean clean_debug mrproper
|
|
|
|
|
.PHONY: release debug clean
|
|
|
|
|
|
|
|
|
|
# Default target
|
|
|
|
|
release: $(PHETCH_RELEASE)
|
|
|
|
@ -15,21 +15,13 @@ debug: $(PHETCH_DEBUG)
|
|
|
|
|
|
|
|
|
|
# Remove the release directory and its contents
|
|
|
|
|
clean:
|
|
|
|
|
@rm -vrf target/release
|
|
|
|
|
|
|
|
|
|
# Remove the debug directory and its contents
|
|
|
|
|
clean_debug:
|
|
|
|
|
@rm -vrf target/debug
|
|
|
|
|
|
|
|
|
|
# Remove the entire target directory
|
|
|
|
|
mrproper: clean clean_debug
|
|
|
|
|
@rm -vrf target
|
|
|
|
|
@rm -rf target
|
|
|
|
|
|
|
|
|
|
# Build and strip the release version
|
|
|
|
|
$(PHETCH_RELEASE): $(RSFILES)
|
|
|
|
|
cargo build --release
|
|
|
|
|
cargo build --release --feature tls
|
|
|
|
|
strip $@
|
|
|
|
|
|
|
|
|
|
# Build the debug version
|
|
|
|
|
$(PHETCH_DEBUG): $(RSFILES)
|
|
|
|
|
cargo build
|
|
|
|
|
cargo build --feature tls
|
|
|
|
|