Makefile: fix the install recipe - ploot - simple plotting tools
(HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 621b388b3006dd5ffe35a6f4b629942f574972b4
(DIR) parent ecbd21a496446ea895412dc2c98c803173828520
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Wed, 8 Aug 2018 19:46:26 +0200
Makefile: fix the install recipe
Diffstat:
M Makefile | 7 +++++--
A ploot-feed.1 | 53 ++++++++++++++++++++++++++++++
A ploot-ff.1 | 0
3 files changed, 58 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -3,6 +3,8 @@ CFLAGS = -Wall -Wextra -Werror -std=c89 -pedantic -fPIC \
LDFLAGS = -static
BIN = ploot-ff ploot-feed
LIB = -lm
+MAN = ploot-ff.1 ploot-feed.1
+MANDIR = $(PREFIX)/share/man
SRC_PLOOT_FF = util.c ploot-ff.c
HDR_PLOOT_FF = arg.h util.h font.h
@@ -21,8 +23,9 @@ ploot-feed: $(OBJ_PLOOT_FEED)
${CC} $(LDFLAGS) -o $@ $(OBJ_PLOOT_FEED) $(LIB)
install: $(BIN)
- mkdir -p ${PREFIX}/bin
- cp ploot plootxt ${PREFIX}/bin
+ mkdir -p ${PREFIX}/bin $(MANDIR)/man1
+ cp $(BIN) ${PREFIX}/bin
+ cp $(MAN) $(MANDIR)/man1
clean:
rm -f *.o
(DIR) diff --git a/ploot-feed.1 b/ploot-feed.1
@@ -0,0 +1,53 @@
+.Dd $Mdocdate: August 08 2018$
+.Dt PLOOT-FEED 1
+.Os
+.
+.
+.Sh NAME
+.
+.Nm ploot-feed
+.Nd plot a continuous stream of data from standard input.
+.
+.
+.Sh SYNOPSIS
+.
+.Nm ploot-feed
+.Op Fl options
+.Ar
+.
+.
+.Sh DESCRIPTION
+.
+The
+.Nm
+utility
+.
+.
+.\" .Sh CONTEXT
+.\" For section 9 functions only.
+.\" .Sh RETURN VALUES
+.\" For sections 2, 3, and 9 function return values only.
+.\" .Sh ENVIRONMENT
+.\" For sections 1, 6, 7, and 8 only.
+.\" .Sh FILES
+.\" .Sh EXIT STATUS
+.\" For sections 1, 6, and 8 only.
+.\" .Sh EXAMPLES
+.\" .Sh DIAGNOSTICS
+.\" For sections 1, 4, 6, 7, 8, and 9 printf/stderr messages only.
+.\" .Sh ERRORS
+.\" For sections 2, 3, 4, and 9 errno settings only.
+.\" .Sh SEE ALSO
+.\" .Xr foobar 1
+.\" .Sh STANDARDS
+.\" .Sh HISTORY
+.
+.
+.Sh AUTHORS
+.
+.An Josuah Demangeon
+.Aq Mt mail@josuah.net
+.
+.
+.\" .Sh CAVEATS
+.\" .Sh BUGS
(DIR) diff --git a/ploot-ff.1 b/ploot-ff.1