mirror of https://github.com/xvxx/phetch
Found the missing Makefile
parent
3a0907f24c
commit
b19b5e592d
@ -0,0 +1,35 @@
|
|||||||
|
# Simple, stupid makefile to make phetch
|
||||||
|
|
||||||
|
PHETCH_RELEASE = target/release/phetch
|
||||||
|
PHETCH_DEBUG = target/debug/phetch
|
||||||
|
|
||||||
|
RSFILES = $(wildcard src/*.rs src/ui/*.rs)
|
||||||
|
|
||||||
|
.PHONY: release debug clean clean_debug mrproper
|
||||||
|
|
||||||
|
# Default target
|
||||||
|
release: $(PHETCH_RELEASE)
|
||||||
|
|
||||||
|
# Binary with debugging info
|
||||||
|
debug: $(PHETCH_DEBUG)
|
||||||
|
|
||||||
|
# Remove the release directory and its contens
|
||||||
|
clean:
|
||||||
|
@rm -vrf target/release
|
||||||
|
|
||||||
|
# Remove the debug directory and its contens
|
||||||
|
clean_debug:
|
||||||
|
@rm -vrf target/debug
|
||||||
|
|
||||||
|
# Remove the entire target directory
|
||||||
|
mrproper: clean clean_debug
|
||||||
|
@rm -vrf target
|
||||||
|
|
||||||
|
# Build and strip the release version
|
||||||
|
$(PHETCH_RELEASE): $(RSFILES)
|
||||||
|
cargo build --release
|
||||||
|
strip $@
|
||||||
|
|
||||||
|
# Build the debug version
|
||||||
|
$(PHETCH_DEBUG): $(RSFILES)
|
||||||
|
cargo build
|
Loading…
Reference in New Issue