mirror of
https://github.com/xvxx/phetch
synced 2024-11-05 00:00:58 +00:00
28 lines
559 B
Makefile
28 lines
559 B
Makefile
# Simple, stupid makefile to make phetch
|
|
|
|
PHETCH_RELEASE = target/release/phetch
|
|
PHETCH_DEBUG = target/debug/phetch
|
|
|
|
RSFILES = $(wildcard src/*.rs src/**/*.rs)
|
|
|
|
.PHONY: release debug clean
|
|
|
|
# Default target
|
|
release: $(PHETCH_RELEASE)
|
|
|
|
# Binary with debugging info
|
|
debug: $(PHETCH_DEBUG)
|
|
|
|
# Remove the release directory and its contents
|
|
clean:
|
|
@rm -rf target
|
|
|
|
# Build and strip the release version
|
|
$(PHETCH_RELEASE): $(RSFILES)
|
|
cargo build --release --features tls
|
|
strip $@
|
|
|
|
# Build the debug version
|
|
$(PHETCH_DEBUG): $(RSFILES)
|
|
cargo build --features tls
|