update makefile

pull/14/head
dvkt 5 years ago
parent 133ed96831
commit 41057c76bf

@ -3,9 +3,9 @@
PHETCH_RELEASE = target/release/phetch PHETCH_RELEASE = target/release/phetch
PHETCH_DEBUG = target/debug/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 # Default target
release: $(PHETCH_RELEASE) release: $(PHETCH_RELEASE)
@ -15,21 +15,13 @@ debug: $(PHETCH_DEBUG)
# Remove the release directory and its contents # Remove the release directory and its contents
clean: clean:
@rm -vrf target/release @rm -rf target
# 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
# Build and strip the release version # Build and strip the release version
$(PHETCH_RELEASE): $(RSFILES) $(PHETCH_RELEASE): $(RSFILES)
cargo build --release cargo build --release --feature tls
strip $@ strip $@
# Build the debug version # Build the debug version
$(PHETCH_DEBUG): $(RSFILES) $(PHETCH_DEBUG): $(RSFILES)
cargo build cargo build --feature tls

Loading…
Cancel
Save