tweak makefile, selected star

pull/6/head
dvkt 5 years ago
parent 08620f4489
commit 7c3617716d

@ -1,15 +1,18 @@
.PHONY: build release run .PHONY: build release run dev debug
run: phetch dev: debug
./phetch
phetch: src/*.rs debug: target/debug/phetch
release: target/release/phetch
target/debug/phetch: src/*.rs
cargo build cargo build
cp target/debug/phetch . cp $@ phetch
release: target/release/phetch: src/*.rs
cargo build --release cargo build --release
strip target/release/phetch strip $@
cp $@ phetch
clean: clean:
rm -rf target rm -rf target

@ -17,8 +17,8 @@ dirt simple terminal gopher client.
## development ## development
cargo run cargo run -- <gopher-url>
## resources ## resources
- [rfc 1346](https://tools.ietf.org/html/rfc1436) - [rfc 1346](https://tools.ietf.org/html/rfc1436)
@ -29,7 +29,7 @@ dirt simple terminal gopher client.
- gopher.black - gopher.black
- sdf.org - sdf.org
- gopher.quux.org - gopher.quux.org
- hngopher.com - hngopher.com
- bitreich.org - bitreich.org
## TODO ## TODO
@ -67,5 +67,5 @@ dirt simple terminal gopher client.
- [ ] fuzzy find search links - [ ] fuzzy find search links
- https://github.com/stewart/rff - https://github.com/stewart/rff
- https://github.com/Schlechtwetterfront/fuzzy-rs - https://github.com/Schlechtwetterfront/fuzzy-rs
- [ ] detect SIGWINCH - [ ] detect SIGWINCH
- https://github.com/BurntSushi/chan-signal - https://github.com/BurntSushi/chan-signal

@ -83,7 +83,7 @@ impl MenuView {
out.push_str(" "); out.push_str(" ");
} else { } else {
if line.link - 1 == self.link { if line.link - 1 == self.link {
out.push('*'); out.push_str("\x1b[97;1m*\x1b[0m")
} else { } else {
out.push(' '); out.push(' ');
} }

Loading…
Cancel
Save