Makefile: add rule to generate README from man page - seturgent - set urgency hints for X applications
(HTM) git clone git://git.codemadness.org/seturgent
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 255f5ed3c7acabf2bcc2c491fdcb45ecdad41a2c
(DIR) parent 2bba1d32cb4d232cc4aa454ee69fb20b6b0f67e3
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2012 20:52:17 +0200
Makefile: add rule to generate README from man page
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
M Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -24,6 +24,11 @@ seturgent: ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
+readme:
+ @echo creating README
+ @groff -T utf8 -man < seturgent.1 | col -bx | \
+ sed "s@VERSION@${VERSION}@g" > README
+
clean:
@echo cleaning
@rm -f seturgent ${OBJ} seturgent-${VERSION}.tar.gz
@@ -53,4 +58,4 @@ uninstall:
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
@rm -f ${DESTDIR}${MANPREFIX}/man1/seturgent.1
-.PHONY: all options clean dist install uninstall
+.PHONY: all readme options clean dist install uninstall