Permalink
Browse files

Makefile.am: Rule for the Web manual

  • Loading branch information...
1 parent 77dcc50 commit 3e894c12c335e8f2cdcacc89b69a2cbe867a299a @pinard committed Jul 18, 2010
Showing with 13 additions and 3 deletions.
  1. +12 −2 Makefile.am
  2. +1 −1 src/recode.1
View
@@ -40,8 +40,18 @@ get-po-files:
local:
$(MAKE) -C contrib
- ajuster-web $(top_srcdir)/web
- make-manual $(top_srcdir)/doc/recode.texi $(top_srcdir)/web/manual
+ $(MAKE) manual
+
+manual:
+ cd $(top_srcdir) \
+ && rm -rf web/manual web/manual-tmp \
+ && mkdir web/manual web/manual-tmp \
+ && makeinfo --html --output=web/manual-tmp doc/recode.texi \
+ && cd web/manual-tmp \
+ && for file in *.html; do \
+ sed 's,href=",href="/manual/,g' $$file > ../manual/$$file; \
+ done
+ rm -rf $(top_srcdir)/web/manual-tmp
publish:
(cd $(top_srcdir) && \
View
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
-.TH RECODE "1" "January 2010" "recode 3.7-beta2" "User Commands"
+.TH RECODE "1" "July 2010" "recode 3.7-beta2" "User Commands"
.SH NAME
recode \- converts files between character sets
.SH SYNOPSIS

0 comments on commit 3e894c1

Please sign in to comment.