about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorRory Bradford <roryrjb@gmail.com>2020-04-10 11:34:57 +0100
committerRory Bradford <roryrjb@gmail.com>2020-04-10 11:34:57 +0100
commit1cc76724bed0180355e53d705bb9ec30928a71ac (patch)
tree7ccf9e253c69a844995e3a0572120fc824fcc9dc /Makefile
parent8af4130a8927f0f4aaab208769b93da1ef0c32f8 (diff)
downloadrf-1cc76724bed0180355e53d705bb9ec30928a71ac.tar.gz
Refactor
Implement `fnmatch` file name matching.

Define clang formatting, previously used defaults without a config
file; apply formatting.

Make `install` more cross-platform.

Signed-off-by: Rory Bradford <roryrjb@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 95202dd..75aed08 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 .SUFFIXES: .c .o
 
 BIN = rf
-VERSION = 0.0.2
+VERSION = 0.0.3
 OBJS = rf.o
 MANPAGE = rf.1
 CC = cc
@@ -45,9 +45,11 @@ static: $(OBJS)
 	$(CC) -c -o $@ $< $(CFLAGS)
 
 install: build
-	install $(BIN) $(DESTDIR)$(PREFIX)/bin/
-	install -TD $(MANPAGE) $(DESTDIR)$(PREFIX)/man/man1/$(MANPAGE)
-	gzip $(PREFIX)/man/man1/$(MANPAGE)
+	install -Dm755 $(BIN) $(DESTDIR)$(PREFIX)/bin/
+	install -Dm444 $(MANPAGE) $(DESTDIR)$(PREFIX)/man/man1/$(MANPAGE)
+
+readme:
+	MANWIDTH=80 man ./rf.1 > README
 
 clean:
 	rm -vf $(BIN) *.o