aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2018-03-03 18:22:02 +0100
committerTeddy Wing2018-03-03 18:22:02 +0100
commitaf1720c73402fbac95ce05a03acf153fdbf404b3 (patch)
tree19ebd2e7e4a24ea99db8e1b9a1bb342af036f2d4 /Makefile
parent094f65dc9966ffddc9798ed506de6c4e159d82af (diff)
downloadPassextract-af1720c73402fbac95ce05a03acf153fdbf404b3.tar.bz2
passextract.1: Make literals bold
To more clearly identify literals in "`literal`" blocks in the man page, make them bold by doing a simple text replacement on them. Note that this Makefile makes a `passextract.1` file at the root of the project. Need to fix that.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6ea628a..ec9e50a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,7 @@
+MAN_PAGE := doc/passextract.1.txt
+TRANSFORMED_MAN_PAGE := $(patsubst %,%.tmp,$(MAN_PAGE))
+
doc/passextract.1: doc/passextract.1.txt
- a2x --no-xmllint --format manpage $<
+ sed 's/`/*/g' $< > $(TRANSFORMED_MAN_PAGE) && \
+ a2x --no-xmllint --format manpage $(TRANSFORMED_MAN_PAGE) && \
+ rm $(TRANSFORMED_MAN_PAGE)