From 4d872677b173d5380e5ab63b17e45d876cc3e864 Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Thu, 13 Aug 2020 09:07:05 +0100 Subject: Add config parser Signed-off-by: Rory Bradford --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 14a80e9..42b5b79 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BIN = rf VERSION = 0.0.5 -OBJS = rf.o ignore.o +OBJS = rf.o ignore.o config.o PREFIX = /usr/local CC = cc CFLAGS = -std=c99 -pedantic -O2 \ @@ -12,12 +12,12 @@ CFLAGS = -std=c99 -pedantic -O2 \ -DVERSION='"$(VERSION)"' \ -DNAME='"$(BIN)"' -build: $(BIN) +all: $(BIN) $(BIN): $(OBJS) $(CC) $(CFLAGS) -o $(BIN) $(OBJS) -install: build +install: $(BIN) mkdir -p \ $(DESTDIR)$(PREFIX)/bin \ $(DESTDIR)$(PREFIX)/man/man1 \ @@ -25,6 +25,7 @@ install: build install -m755 $(BIN) $(DESTDIR)$(PREFIX)/bin/ install -m444 rf.1 $(DESTDIR)$(PREFIX)/man/man1/ install -m444 rfignore.5 $(DESTDIR)$(PREFIX)/man/man5/ + install -m444 rfconfig.5 $(DESTDIR)$(PREFIX)/man/man5/ clean: rm -vf $(BIN) *.o -- cgit 1.4.1-2-gfad0