om

om - the most recently modified file in a directory
git clone git://git.larryhynes.net/om
Log | Files | Refs | README | LICENSE

commit 4987e6fc1e063ff7000c98332a7b90798a6500c1
parent 8c017e96539b85c470043ad41134f4afbccfd8ba
Author: Larry Hynes <larry@larryhynes.com>
Date:   Mon, 10 Jul 2017 23:48:50 +0100

Add uninstall rule to Makefile

Diffstat:
Makefile | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -Wall -Wextra -pedantic -O2 +CFLAGS += -Wall -Wextra -pedantic -O2 BINDIR=/usr/local/bin MANDIR=/usr/local/share/man/man1 @@ -8,9 +8,13 @@ OBJS = strlcat.o strlcpy.o om.o om: $(OBJS) $(CC) $(CFLAGS) -o om $(OBJS) -clean: - rm -f *.o om - install: om install -m 0755 om $(BINDIR) install -m 0644 om.1 $(MANDIR) + +clean: + rm -f *.o om + +uninstall: + rm -f $(BINDIR)/om + rm -f $(MANDIR)/om.1