summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latex2man/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/latex2man/Makefile')
-rw-r--r--Master/texmf-dist/doc/support/latex2man/Makefile45
1 files changed, 28 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/support/latex2man/Makefile b/Master/texmf-dist/doc/support/latex2man/Makefile
index f40f285f32b..8a957ff4507 100644
--- a/Master/texmf-dist/doc/support/latex2man/Makefile
+++ b/Master/texmf-dist/doc/support/latex2man/Makefile
@@ -1,7 +1,7 @@
# Project: Documentation Tools
# Descr: Latex --> MAN-page (groff -man), Makefile
# Author: Dr. Jürgen Vollmer, Juergen.Vollmer@informatik-vollmer.de
-# $Id: Makefile,v 1.106 2008/11/11 07:17:29 vollmer Exp $
+# $Id: Makefile,v 1.110 2010/12/22 12:46:25 vollmer Exp $
BASE = latex2man
@@ -23,8 +23,8 @@ EX = --exclude "*.o" --exclude core --exclude "*.tar.gz" --exclude "*~" \
--exclude "*.a" --exclude "*.php"
EXrcs = $(EX) --exclude "*/RCS/*" --exclude "*/RCS"
-VERSION = 1.23
-V_DATE = 2008/11/11
+VERSION = 1.24
+V_DATE = 2010/12/22
latex2man = ./latex2man
D = $
@@ -34,8 +34,7 @@ HOMEPAGE = $(HOME)/Privat/informatik-vollmer/software
.PHONY: all clean realclean diff backup src-tar
#.SUFFIXES: .tex .html .ps .info .texi .txt
-all: $(BASE).1 $(BASE).html $(BASE).texi $(BASE).info $(BASE).txt \
- $(BASE).pdf
+all: $(BASE).1 $(BASE).html $(BASE).texi $(BASE).info $(BASE).txt $(BASE).pdf latex2man-CHANGES.html
$(MAKE) clean
%.ps: %.tex
@@ -66,26 +65,36 @@ all: $(BASE).1 $(BASE).html $(BASE).texi $(BASE).info $(BASE).txt \
$(latex2man) -M $*.tex $*.1
%.html: %.tex
- $(latex2man) -H $*.tex $*.html
+ $(latex2man) -H -c $*.css $*.tex $*.html
%.texi: %.tex
$(latex2man) -T $*.tex $*.texi
-CHANGES.html: CHANGES
- sed -e's/&/\&amp;/g' -e's/>/\&gt;/g' -e's/</\&lt;/g' \
- < CHANGES > CHANGES.html
-
-$(BASE).php: $(BASE).php.src Makefile CHANGES.html
+latex2man-CHANGES.html: CHANGES
+ @( \
+ echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">"; \
+ echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">"; \
+ echo "<html><head>"; \
+ echo "<title>Changefile of LaTeX2HTML</title>"; \
+ echo "</head><body><pre>"; \
+ sed -e's/&/\&amp;/g' -e's/>/\&gt;/g' -e's/</\&lt;/g' < CHANGES; \
+ echo "</pre></body><html>"; \
+ ) > latex2man-CHANGES.html
+
+CHANGES.pre.html: CHANGES
+ sed -e's/&/\&amp;/g' -e's/>/\&gt;/g' -e's/</\&lt;/g' < CHANGES > CHANGES.pre.html; \
+
+$(BASE).php: $(BASE).php.src Makefile CHANGES.pre.html
sed < $(BASE).php.src \
-e "s|@VERSION@|$(VERSION)|g" \
-e "s|@DATE@|$(V_DATE)|g" \
- -e "/@CHANGELOG@/r CHANGES.html" \
+ -e "/@CHANGELOG@/r CHANGES.pre.html" \
-e "/^@.*@$$/d" \
-e "s|$(BASE).src|$(BASE)|g" \
-e "s|$(D)\(Id: $(BASE),v .*\) $(D)|\1|g" |\
sed -e "/$(D)Id: CHANGES,v/d" \
> $(BASE).php
- rm -f CHANGES.html
+ rm -f CHANGES.pre.html
latex2man-html.php: latex2man.html Makefile
@ (echo '<?php'; \
@@ -121,10 +130,8 @@ latex2man-text.php: latex2man.txt Makefile
echo '<?php include "$$prefix/scripts/footer.inc"?>'; \
) > latex2man-text.php
-homepage: latex2man.pdf latex2man.txt latex2man.php latex2man-html.php \
- latex2man-text.php latex2man.info
- cp -fp $(TAR_DIST) latex2man.pdf latex2man*.php latex2man.info $(HOMEPAGE)
- cp -fp CHANGES $(HOMEPAGE)/latex2man-CHANGES
+homepage: latex2man.pdf latex2man.txt latex2man.php latex2man-html.php latex2man-CHANGES.html latex2man-text.php latex2man.info
+ cp -fp $(TAR_DIST) latex2man.pdf latex2man*.php latex2man.info latex2man-CHANGES.html latex2man.css $(HOMEPAGE)
rm -f *.php
install: realclean all
@@ -142,6 +149,7 @@ install: realclean all
cp -f $(BASE).cfg $(CFG_DIR)
cp -f $(BASE).1 $(MAN_DIR)/man1
cp -f $(BASE).html $(HTML_DIR)
+ cp -f $(BASE).css $(HTML_DIR)
cp -f $(BASE).info $(INFO_DIR)
install-info $(BASE).info $(INFO_DIR)/dir
$(MAKE) clean
@@ -152,6 +160,7 @@ uninstall:
rm -f $(CFG_DIR)/$(BASE).cfg
rm -f $(MAN_DIR)/man1/$(BASE).1
rm -f $(HTML_DIR)/$(BASE).html
+ rm -f $(HTML_DIR)/$(BASE).css
rm -f $(INFO_DIR)/$(BASE).info
- install-info --quiet --remove $(BASE).info $(INFO_DIR)/dir
@@ -184,6 +193,7 @@ dist:
$(BASE)/latex2man.cfg \
$(BASE)/latex2man.sty \
$(BASE)/latex2man.trans \
+ $(BASE)/latex2man.css \
$(BASE)/latex2man.1 \
$(BASE)/latex2man.txt \
$(BASE)/latex2man.html \
@@ -194,6 +204,7 @@ dist:
$(BASE)/README \
$(BASE)/INSTALL \
$(BASE)/CHANGES \
+ $(BASE)/latex2man-CHANGES.html \
$(BASE)/THIS-IS-VERSION-$(VERSION)
backup: