You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 615B

123456789101112131415161718192021222324
  1. .POSIX:
  2. .SUFFIXES:
  3. meli:
  4. cargo build --release
  5. PREFIX=/usr/local
  6. .PHONY: clean
  7. clean: rm -ri ./target/
  8. .PHONY: uninstall
  9. uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/meli
  10. rm $(DESTDIR)$(PREFIX)/share/man/man1/meli.1.gz
  11. rm $(DESTDIR)$(PREFIX)/share/man/man5/meli.conf.5.gz
  12. .PHONY: install
  13. install: meli
  14. mkdir -p $(DESTDIR)$(PREFIX)/bin
  15. mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
  16. mkdir -p $(DESTDIR)$(PREFIX)/share/man/man5
  17. cp -f target/release/meli $(DESTDIR)$(PREFIX)/bin
  18. gzip < meli.1 > $(DESTDIR)$(PREFIX)/share/man/man1/meli.1.gz
  19. gzip < meli.conf.5 > $(DESTDIR)$(PREFIX)/share/man/man5/meli.conf.5.gz