mirror of
https://git.meli.delivery/meli/meli
synced 2024-10-30 21:20:34 +00:00
25 lines
615 B
Makefile
25 lines
615 B
Makefile
.POSIX:
|
|
.SUFFIXES:
|
|
meli:
|
|
cargo build --release
|
|
|
|
PREFIX=/usr/local
|
|
|
|
.PHONY: clean
|
|
clean: rm -ri ./target/
|
|
|
|
|
|
.PHONY: uninstall
|
|
uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/meli
|
|
rm $(DESTDIR)$(PREFIX)/share/man/man1/meli.1.gz
|
|
rm $(DESTDIR)$(PREFIX)/share/man/man5/meli.conf.5.gz
|
|
|
|
.PHONY: install
|
|
install: meli
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
|
|
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man5
|
|
cp -f target/release/meli $(DESTDIR)$(PREFIX)/bin
|
|
gzip < meli.1 > $(DESTDIR)$(PREFIX)/share/man/man1/meli.1.gz
|
|
gzip < meli.conf.5 > $(DESTDIR)$(PREFIX)/share/man/man5/meli.conf.5.gz
|