Browse Source

+ Now pics directory is included in HTML

michael 23 years ago
parent
commit
cac8fc1187
1 changed files with 24 additions and 5 deletions
  1. 24 5
      docs/Makefile

+ 24 - 5
docs/Makefile

@@ -22,7 +22,7 @@
 #INSTALLDEBUG=1
 #INSTALLDEBUG=1
 
 
 # Which docs are made when 'html' is specified
 # Which docs are made when 'html' is specified
-HTML = user units ref prog
+HTML = user units ref prog fcl
 
 
 # Can be 'report','book' or 'html'
 # Can be 'report','book' or 'html'
 PREAMBLETYPE = report
 PREAMBLETYPE = report
@@ -36,7 +36,7 @@ ifndef DOCINSTALLDIR
 DOCINSTALLDIR:=$(PREFIXINSTALLDIR)/doc/fpc-$(shell ppc386 -iV)
 DOCINSTALLDIR:=$(PREFIXINSTALLDIR)/doc/fpc-$(shell ppc386 -iV)
 endif 
 endif 
 
 
-
+FPDOC=fpdoc
 
 
 #
 #
 # Program definitions
 # Program definitions
@@ -109,6 +109,8 @@ CHAPTERS = $(addsuffix .tex, crt dos getopts go32 graph linux printer\
              strings objects heaptrc sysutils ipc mouse gpm dxeload \
              strings objects heaptrc sysutils ipc mouse gpm dxeload \
              emu387 ports math keyboard typinfo video)
              emu387 ports math keyboard typinfo video)
 
 
+FCLCHAPTERS = $(addsuffix .tex, classes)
+
 GTKPDF=$(addsuffix .pdf,$(addprefix gtk, 1 2 3 4 5))
 GTKPDF=$(addsuffix .pdf,$(addprefix gtk, 1 2 3 4 5))
 
 
 # Check if ascii-mode requested
 # Check if ascii-mode requested
@@ -273,9 +275,17 @@ else
 includes: date.inc preamble.inc
 includes: date.inc preamble.inc
 endif
 endif
 
 
-#
+#####################################################################
+# Tex from XML
+#####################################################################
+FPCLASSESOPT=--descr=classes.xml --input='../fcl/linux/classes.pp -I../fcl/inc'
+
+classes.tex: classes.xml
+	$(FPDOC) --output=. $(FPCLASSESOPT) --format=latex
+
+#####################################################################
 # DVI files
 # DVI files
-#
+#####################################################################
 
 
 onechap: onechap.dvi
 onechap: onechap.dvi
 
 
@@ -310,6 +320,7 @@ pdf : $(PDF)
 
 
 all : dvi ps pdf txt html
 all : dvi ps pdf txt html
 
 
+
 #####################################################################
 #####################################################################
 # Html creation
 # Html creation
 #####################################################################
 #####################################################################
@@ -427,6 +438,10 @@ endif
 
 
 html: $(HTML)
 html: $(HTML)
 
 
+classes: classes/index.html
+
+classes/index.html: classes.xml
+	$(FPDOC) $(FPCLASSESOPT) --format=html
 
 
 #####################################################################
 #####################################################################
 # GTK Articles
 # GTK Articles
@@ -457,6 +472,7 @@ htmlinstall: html
 	install -d -m 755 $(DOCINSTALLDIR)
 	install -d -m 755 $(DOCINSTALLDIR)
 	cp fpctoc.html $(DOCINSTALLDIR)
 	cp fpctoc.html $(DOCINSTALLDIR)
 	cp -R buttons $(DOCINSTALLDIR)
 	cp -R buttons $(DOCINSTALLDIR)
+	cp -R pics $(DOCINSTALLDIR)
 	cp -R $(HTML) $(DOCINSTALLDIR)
 	cp -R $(HTML) $(DOCINSTALLDIR)
 	find $(DOCINSTALLDIR) -name 'CVS' | xargs -n1 rm -rf
 	find $(DOCINSTALLDIR) -name 'CVS' | xargs -n1 rm -rf
 
 
@@ -543,7 +559,10 @@ linuxexamples: examples
 
 
 #
 #
 # $Log$
 # $Log$
-# Revision 1.11  2001-11-05 20:10:05  michael
+# Revision 1.12  2002-03-12 22:13:42  michael
+# + Now pics directory is included in HTML
+#
+# Revision 1.11  2001/11/05 20:10:05  michael
 # + Added onechap target
 # + Added onechap target
 #
 #
 # Revision 1.10  2001/10/18 21:41:26  peter
 # Revision 1.10  2001/10/18 21:41:26  peter