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 717B

123456789101112131415161718192021222324252627282930
  1. .POSIX:
  2. .SUFFIXES:
  3. meli:
  4. cargo build $(FEATURES)--release
  5. PREFIX=/usr/local
  6. ifdef MELI_FEATURES
  7. FEATURES ?= --features="$(MELI_FEATURES)"
  8. else
  9. FEATURES ?=
  10. endif
  11. .PHONY: clean
  12. clean: rm -ri ./target/
  13. .PHONY: uninstall
  14. uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/meli
  15. rm $(DESTDIR)$(PREFIX)/share/man/man1/meli.1.gz
  16. rm $(DESTDIR)$(PREFIX)/share/man/man5/meli.conf.5.gz
  17. .PHONY: install
  18. install: meli
  19. mkdir -p $(DESTDIR)$(PREFIX)/bin
  20. mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
  21. mkdir -p $(DESTDIR)$(PREFIX)/share/man/man5
  22. cp -f target/release/meli $(DESTDIR)$(PREFIX)/bin
  23. gzip < meli.1 > $(DESTDIR)$(PREFIX)/share/man/man1/meli.1.gz
  24. gzip < meli.conf.5 > $(DESTDIR)$(PREFIX)/share/man/man5/meli.conf.5.gz