Description: documentation autotools machinery enhancement
 Oververride of the upstream documentation autotools machinery
 that avoids the load of the involved GAP package.
Origin: debian
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2014-08-19

--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -6,23 +6,28 @@
 ##
 #############################################################################
 
-docdir = $(GAPROOT)/pkg/$(PACKAGE)/doc
+docdir = @datadir@/gap/pkg/@PACKAGE@/doc
 
-all-local: doc
+doc_DATA = \
+	chapBib.txt chapInd.txt chap0.txt chap1.txt chap2.txt chap3.txt chap4.txt \
+	chapBib.html chapInd.html chap0.html chap1.html chap2.html chap3.html chap4.html \
+	chooser.html \
+	manual.css manual.js \
+	manual.six \
+	manual.pdf \
+	manual.lab
 
-doc: manual.six
+$(doc_DATA): float.xml float.bib
+	cd $(top_srcdir) && cat makedoc.g | $(CGAP) -A -q -T > /dev/null
 
-manual.six: float.xml float.bib
-	cd $(top_srcdir) && echo 'LoadPackage("float"); DOC@FLOAT();' | $(CGAP) -A -q -T
+clean-local:
+	rm -f float.tex
+	rm -f float.aux float.idx float.bbl float.ind float.out float.toc float.pnr float.brf
+	rm -f float.log float.blg float.ilg
 
 distclean-local:
-	rm -f chap*.txt chap*.html index.html chooser.html
 	rm -f lefttoc.css ragged.css times.css toggless.css nocolorprompt.css
 	rm -f rainbow.js toggless.js
-	rm -f manual.six manual.css manual.js manual.lab
-	rm -f manual.pdf
-	rm -f float.tex
-	rm -f float.aux float.idx float.bbl float.ind float.out float.toc float.pnr float.brf
-	rm -f float.log float.blg float.ilg
+	rm -f $(doc_DATA)
 
 #E doc/Makefile.am . . . . . . . . . . . . . . . . . . . . . . . . . ends here
--- /dev/null
+++ b/makedoc.g
@@ -0,0 +1,10 @@
+SetPackagePath("float",".");
+LoadPackage("GAPDoc");
+##LoadPackage("float");
+MakeGAPDocDoc("./doc","float",[
+	"../lib/float.gd",
+	"../lib/pslq.gi",
+	"../PackageInfo.g"
+	],"float");;
+CopyHTMLStyleFiles("doc");
+GAPDocManualLab("Float");
