ttyplot

Realtime terminal plotter
git clone git://git.sgregoratto.me/ttyplot
Log | Files | Refs | README | LICENSE

commit ac610a051395891899362ca52f1293f18a86b1d1
parent 3d51db214c90ce729ed39d54ad8ca0d41e9686a1
Author: Antoni Sawicki <tenox@google.com>
Date:   Wed, 12 Jun 2019 17:21:36 -0700

Merge pull request #35 from sjmulder/pr/install

Add install and uninstall targets
Diffstat:
MMakefile | 16+++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -1,9 +1,23 @@ +DESTDIR ?= +PREFIX ?= /usr/local +MANPREFIX ?= $(PREFIX)/man + CFLAGS += -Wall LDLIBS += -lcurses all: ttyplot +install: ttyplot ttyplot.1 + install -d $(DESTDIR)$(PREFIX)/bin + install -d $(DESTDIR)$(MANPREFIX)/man1 + install -m755 ttyplot $(DESTDIR)$(PREFIX)/bin + install -m644 ttyplot.1 $(DESTDIR)$(MANPREFIX)/man1 + +uninstall: + rm -f $(PREFIX)$(PREFIX)/bin/ttyplot + rm -f $(PREFIX)$(MANPREFIX)/man1/ttyplot.1 + clean: rm -f ttyplot torture -.PHONY: all clean +.PHONY: all clean install uninstall