om

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

commit 4d541fdfe028a08ac6164c1a0fa7da57e42978b4
parent d28ba6e637d1e494671949c176d5c65315bf08bb
Author: Larry Hynes <larry@larryhynes.com>
Date:   Thu, 13 Jul 2017 01:08:13 +0100

Update Makefile

Diffstat:
Makefile | 19++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,14 +1,23 @@ -CFLAGS += -Wall -Wextra -pedantic -O2 +CFLAGS += -Wall -Wextra -pedantic BINDIR=/usr/local/bin MANDIR=/usr/local/share/man/man1 -OBJS = strlcat.o strlcpy.o om.o +all: om -om: $(OBJS) - $(CC) $(CFLAGS) -o om $(OBJS) +om: om.o strlcat.o strlcpy.o + $(CC) om.o strlcat.o strlcpy.o -o om -install: om +om.o: om.c + $(CC) $(CFLAGS) -c om.c + +strlcat.o: strlcat.c + $(CC) $(CFLAGS) -c strlcat.c + +strlcpy.o: strlcpy.c + $(CC) $(CFLAGS) -c strlcpy.c + +install: all install -m 0755 om $(BINDIR) install -m 0644 om.1 $(MANDIR)