Skip to content

Commit 7fff24f

Browse files
committed
use install command to install a binary executable file
1 parent fdb11f7 commit 7fff24f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ibus-akaza/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ akaza-debug.xml: akaza.xml.in
2727
-e "s:@BINARY@:$(PWD)/ibus-akaza-debug.sh:g" \
2828
-e "s:@DATADIR@:$(DATADIR)/:g" $< > $@
2929

30-
install: akaza.xml config.h
31-
cargo install --path=. --root=$(PREFIX)
30+
install: akaza.xml config.h .ibus-akaza
31+
install -m 0644 ../target/release/ibus-akaza $(PREFIX)/bin/
3232

3333
install -m 0644 akaza.svg $(DESTDIR)$(DATADIR)/ibus-akaza
3434
install -m 0644 akaza.xml $(DESTDIR)$(DATADIR)/ibus/component
3535

36+
.ibus-akaza:
37+
cargo build --release
38+
3639
install-debug: akaza-debug.xml
3740
install -m 0644 akaza-debug.xml $(DESTDIR)$(DATADIR)/ibus/component/akaza.xml
3841

0 commit comments

Comments
 (0)