]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
Update the makefile to include a bunch more stuff from GHC and other libraries.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 8 May 2011 21:19:20 +0000 (17:19 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 May 2011 21:19:20 +0000 (17:19 -0400)
makefile

index 723eab3a9128b0f82eeca9390b60f70ec4aa6440..84c6d1d0f0f3ff0bd2d304cc710c7313eaf0db93 100644 (file)
--- a/makefile
+++ b/makefile
@@ -37,13 +37,31 @@ src_html:
        util/hscolour_srcs
 
 
-DOCS := -i /usr/share/doc/ghc-6.12.3/html/libraries/base-4.2.0.2/base.haddock
-DOCS += -i /usr/share/doc/storable-complex-0.2.1/html/storable-complex.haddock
-DOCS += -i /usr/share/doc/quickcheck-2.1.0.3/html/QuickCheck.haddock
-DOCS += -i /usr/share/doc/hmatrix-0.11.0.4/html/hmatrix.haddock
-DOCS += -i /usr/share/doc/hunit-1.2.0.3/html/HUnit.haddock
+DOCS := -i /usr/share/doc/ghc-*/html/libraries/base-*/base.haddock
+DOCS += -i /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/ghc-prim.haddock
+DOCS += -i /usr/share/doc/ghc-*/html/libraries/haskell98-*/haskell98.haddock
+DOCS += -i /usr/share/doc/storable-complex-*/html/storable-complex.haddock
+DOCS += -i /usr/share/doc/quickcheck-*/html/QuickCheck.haddock
+DOCS += -i /usr/share/doc/hmatrix-*/html/hmatrix.haddock
+DOCS += -i /usr/share/doc/hunit-*/html/HUnit.haddock
+
+
+HTMLS := /usr/share/doc/ghc-*/html/libraries/base-*/*.html
+HTMLS += /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/*.html
+HTMLS += /usr/share/doc/ghc-*/html/libraries/haskell98-*/*.html
+HTMLS += /usr/share/doc/quickcheck-*/html/*.html
+HTMLS += /usr/share/doc/hunit-*/html/*.html
+HTMLS += /usr/share/doc/storable-complex-*/html/*.html
+HTMLS += /usr/share/doc/hmatrix-*/html/*.html
+
+HSCOLOUR_SRCS := /usr/share/doc/ghc-*/html/libraries/base-*/src/*
+HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/ghc-prim-*/src/*
+HSCOLOUR_SRCS += /usr/share/doc/ghc-*/html/libraries/haskell98-*/src/*
+HSCOLOUR_SRCS += /usr/share/doc/hmatrix-*/html/src/*
 
 doc: src_html
+       cp -n $(HTMLS) ./doc/html/
+       cp -n $(HSCOLOUR_SRCS) ./doc/html/src/
        haddock $(DOCS) --html --use-unicode               \
          --odir=doc/html/ --title="spline3"               \
          --source-module="src/%{MODULE/.//}.html"         \