commit 7feb8715356ed9db8b9e3d02d4968f82651f6817
parent c595ac747c58a8d8a26b526d6f57fe8ddda27d9b
Author: Ed van Bruggen <edvb54@gmail.com>
Date: Tue, 22 Aug 2017 22:46:26 -0700
Add test target, rename update-man to man
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -63,10 +63,14 @@ uninstall:
@rm -f $(DESTDIR)$(MANPREFIX)/man1/$(EXE).1
@echo \ done
-update-man:
+man:
@echo -n updating man page $(EXE).1 ...
@cat README.md | sed "s/# $(EXE)/# $(EXE) 1\n\n##NAME\n\n$(EXE) /" | \
md2man-roff | sed "s/\\[la\]/\</" | sed "s/\\[ra\]/\>/" > $(EXE).1
@echo \ done
-.PHONY: all options clean install uninstall update-man
+test: $(EXE)
+ @rm -f todo list
+ @clitest --prefix tab README.md
+
+.PHONY: all options clean install uninstall man test