commit 9c83ac4e12d2d41c863281ada57c3c39c81b4644 parent 474200046322ff9e4591e30137ab3eb09dfb8d36 Author: William Casarin <jb55@jb55.com> Date: Fri, 29 Sep 2017 22:55:34 -0700 readme and stuff Diffstat:
M | Makefile | | | 5 | +++++ |
A | README.md | | | 18 | ++++++++++++++++++ |
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,5 +1,6 @@ GEN=parser.tab.c parser.tab.h lex.yy.c +PREFIX ?= /usr/local all: ratio @@ -9,6 +10,10 @@ parser.tab.c parser.tab.h: parser.y lex.yy.c: lexer.l parser.tab.h flex lexer.l +install: ratio + mkdir -p $(PREFIX)/bin + cp ratio $(PREFIX)/bin + ratio: $(GEN) $(CC) -o $@ -lgmp parser.tab.c lex.yy.c diff --git a/README.md b/README.md @@ -0,0 +1,18 @@ + +# ratio + + CLI ratio calculator using gmp + +## Installation + + Install with make + + $ make install + +## Usage + + Easy + + $ ratio <<< '14/15 * 3' + 14 / 5 +