Changes to manual namings to standardise. Added script from M0AZM to
[spider.git] / sgml / Makefile
index 7bb8a2f4c38dc8596b547131502aec7ed5bb00b0..1056584a545badd8b78edd37fd9648f88b2167d7 100644 (file)
@@ -2,39 +2,50 @@
 # Makefile for Ian, 2.1.2001
 #
 
-all:   ../html/adminmanual.html ../txt/adminmanual.txt ../html/installation.html ../txt/installation.txt ../html/spiderFAQ.html ../txt/spiderFAQ.txt ../html/usermanual.html ../txt/usermanual.txt ../html/spiderCVS.html ../txt/spiderCVS.txt
+all:   sgml ../html/adminmanual.html ../txt/adminmanual.txt ../html/installation.html ../txt/installation.txt ../html/spiderFAQ.html ../txt/spiderFAQ.txt ../html/usermanual.html ../txt/usermanual.txt ../html/spiderCVS.html ../txt/spiderCVS.txt
 
-#      ../txt/adminmanual.txt: adminmanual.sgml
-       sgml2txt -f adminmanual.sgml
+sgml: ../cmd/Commands_en.hlp adminmanual.sgml usermanual.sgml
+       # Create the admin manual sgml file
+       cat ../cmd/Commands_en.hlp  | ./commands2sgml.pl 8 > ./adminmanual-cmd.sgml
+       cat adminmanual.sgml adminmanual-cmd.sgml > ./adminmanual_en.sgml
 
-#      ../html/adminmanual.html: adminmanual.sgml
-       sgml2html adminmanual.sgml
+       # Create the user manual sgml file
+       cat ../cmd/Commands_en.hlp | ./commands2sgml.pl > usermanual-cmd.sgml
+       cat usermanual.sgml usermanual-cmd.sgml > usermanual_en.sgml
 
-#      ../txt/installation.txt: installation.sgml
-       sgml2txt -f installation.sgml
+#      ../txt/adminmanual_en.txt: adminmanual_en.sgml
+       sgml2txt -f adminmanual_en.sgml
 
-#      ../html/installation.html: installation.html
-       sgml2html installation.sgml
+#      ../html/adminmanual_en.html: adminmanual_en.sgml
+       sgml2html adminmanual_en.sgml
 
-#      ../html/spiderFAQ.html: spiderFAQ.sgml 
-       sgml2txt spiderFAQ.sgml
+#      ../txt/installation_en.txt: installation_en.sgml
+       sgml2txt -f installation_en.sgml
 
-#      ../html/spiderFAQ.html: spiderFAQ.sgml
-       sgml2html spiderFAQ.sgml
+#      ../html/installation_en.html: installation_en.html
+       sgml2html installation_en.sgml
 
-#      ../html/usermanual.html: usermanual.sgml
-       sgml2html usermanual.sgml
+#      ../html/spiderFAQ_en.html: spiderFAQ_en.sgml 
+       sgml2txt spiderFAQ_en.sgml
 
-#      ../txt/usermanual.txt: usermanual.sgml
-       sgml2txt usermanual.sgml
+#      ../html/spiderFAQ_en.html: spiderFAQ_en.sgml
+       sgml2html spiderFAQ_en.sgml
 
-#      ../html/spiderCVS.html: spiderCVS.sgml
-       sgml2html spiderCVS.sgml
+#      ../html/usermanual_en.html: usermanual_en.sgml
+       sgml2html usermanual_en.sgml
 
-#      ../txt/spiderCVS.txt: spiderCVS.sgml
-       sgml2txt spiderCVS.sgml
+#      ../txt/usermanual_en.txt: usermanual_en.sgml
+       sgml2txt usermanual_en.sgml
+
+#      ../html/spiderCVS_en.html: spiderCVS_en.sgml
+       sgml2html spiderCVS_en.sgml
+
+#      ../txt/spiderCVS_en.txt: spiderCVS_en.sgml
+       sgml2txt spiderCVS_en.sgml
 
        perl -pi.bak -e 's|</HEAD>|<link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">\n</HEAD>|' *.html
        mv *.html ../html
        mv *.txt ../txt
        rm -f *.bak
+       rm -f *cmd.sgml
+