diff options
author | bnewbold <bnewbold@robocracy.org> | 2017-02-22 00:17:35 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2017-02-22 00:17:35 -0800 |
commit | ce8b74e904611afe5b9050fba24c93fb049f3c80 (patch) | |
tree | 84948d1a1f48bfb534d9b36934f76301831b4487 | |
parent | 6afe59dc79e71b1aca1ba734b950af18ff503a0a (diff) | |
download | einhyrningsins-ce8b74e904611afe5b9050fba24c93fb049f3c80.tar.gz einhyrningsins-ce8b74e904611afe5b9050fba24c93fb049f3c80.zip |
flesh out Makefile with install target
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -2,10 +2,15 @@ RONN = ronn MANPAGE = einhyrningsins.1 +INSTALL = install +PREFIX = /usr/local + +.PHONY: docs docs: doc/*.ronn $(RONN) -r doc/*.ronn $(RONN) --style toc -5 doc/*.ronn +.PHONY: gh-pages gh-pages: docs mkdir -p /tmp/einhyrningsins-ronn cp doc/*.1.html /tmp/einhyrningsins-ronn @@ -15,3 +20,15 @@ gh-pages: docs git commit -m "updating rendered manpage for github docs" || true git checkout master rm -r /tmp/einhyrningsins-ronn + +.PHONY: build +build: src/*.rs src/bin/*.rs + cargo build --release + +.PHONY: install +install: + $(INSTALL) -t $(PREFIX)/bin target/release/einhyrningsins + $(INSTALL) -t $(PREFIX)/bin target/release/einhyrningsinsctl + # Trying to install manpages; ok if this fails + $(INSTALL) -m 644 -t $(PREFIX)/share/man/man1 doc/einhyrningsins.1 + $(INSTALL) -m 644 -t $(PREFIX)/share/man/man1 doc/einhyrningsinsctl.1 |