diff options
author | Rory Bradford <roryrjb@gmail.com> | 2020-08-13 09:07:05 +0100 |
---|---|---|
committer | Rory Bradford <roryrjb@gmail.com> | 2020-08-13 09:07:05 +0100 |
commit | 4d872677b173d5380e5ab63b17e45d876cc3e864 (patch) | |
tree | e4c1dd9a40350e7a4f566539c5036ec15e865153 /Makefile | |
parent | 71abce4e0725251ee9484e85fa58e325d1cd6407 (diff) | |
download | rf-4d872677b173d5380e5ab63b17e45d876cc3e864.tar.gz |
Add config parser
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
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 |