aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-04-04 16:23:43 +0000
committersimonmar <unknown>2002-04-04 16:23:43 +0000
commit2b39cd941c80d2603f2480684c45dd31f9256831 (patch)
tree87a4fdb2752c8a99e54e50e45c1bfa8c2bf80577 /mk
[haddock @ 2002-04-04 16:23:43 by simonmar]
This is Haddock, my stab at a Haskell documentation tool. It's not quite ready for release yet, but I'm putting it in the repository so others can take a look. It uses a locally modified version of the hssource parser, extended with support for GHC extensions and documentation annotations.
Diffstat (limited to 'mk')
-rw-r--r--mk/boilerplate.mk28
-rw-r--r--mk/config.mk10
-rw-r--r--mk/target.mk17
-rw-r--r--mk/version.mk18
4 files changed, 73 insertions, 0 deletions
diff --git a/mk/boilerplate.mk b/mk/boilerplate.mk
new file mode 100644
index 00000000..0f29d4ab
--- /dev/null
+++ b/mk/boilerplate.mk
@@ -0,0 +1,28 @@
+#-----------------------------------------------------------------------------
+# $Id: boilerplate.mk,v 1.1 2002/04/04 16:23:42 simonmar Exp $
+
+# Begin by slurping in the boilerplate from one level up.
+# Remember, TOP is the top level of the innermost level
+# (FPTOOLS_TOP is the fptools top)
+
+-include $(TOP)/mk/version.mk
+
+# We need to set TOP to be the TOP that the next level up expects!
+# The TOP variable is reset after the inclusion of the fptools
+# boilerplate, so we stash TOP away first:
+HADDOCK_TOP := $(TOP)
+TOP:=$(TOP)/..
+
+include $(TOP)/mk/boilerplate.mk
+
+# Reset TOP
+TOP:=$(HADDOCK_TOP)
+
+# -----------------------------------------------------------------
+# Everything after this point
+# augments or overrides previously set variables.
+# -----------------------------------------------------------------
+
+-include $(TOP)/mk/paths.mk
+-include $(TOP)/mk/opts.mk
+-include $(TOP)/mk/suffix.mk
diff --git a/mk/config.mk b/mk/config.mk
new file mode 100644
index 00000000..b5e9ff01
--- /dev/null
+++ b/mk/config.mk
@@ -0,0 +1,10 @@
+#
+# Haddock project information
+#
+
+# what to include in a binary distribution
+HaddockMainDir = haddock
+HaddockBinDistDirs = haddock
+HaddockBinDistDocs = haddock/doc
+
+include $(HaddockMainDir)/mk/version.mk
diff --git a/mk/target.mk b/mk/target.mk
new file mode 100644
index 00000000..dcba624e
--- /dev/null
+++ b/mk/target.mk
@@ -0,0 +1,17 @@
+#-----------------------------------------------------------------------------
+# $Id: target.mk,v 1.1 2002/04/04 16:23:42 simonmar Exp $
+# target.mk project stub
+#
+
+# We need to set TOP to be the TOP that the next level up expects!
+# The TOP variable is reset after the inclusion of the fptools
+# boilerplate, so we stash TOP away first:
+HADDOCK_TOP := $(TOP)
+TOP:=$(TOP)/..
+
+include $(TOP)/mk/target.mk
+
+HADDOCK_INPLACE = $(HADDOCK_TOP)/src/haddock-inplace
+
+# Reset TOP
+TOP:=$(HADDOCK_TOP)
diff --git a/mk/version.mk b/mk/version.mk
new file mode 100644
index 00000000..e66f69aa
--- /dev/null
+++ b/mk/version.mk
@@ -0,0 +1,18 @@
+#
+# Project-specific version information.
+#
+# Note:
+# this config file is intended to centralise all
+# project version information. To bump up the version
+# info on your package, edit this file and recompile
+# all the dependents. This file lives in the source tree.
+#
+
+#
+# haddock project variable settings:
+#
+ProjectName = Haddock
+ProjectNameShort = haddock
+ProjectVersion = 0.1
+ProjectVersionInt = 1
+ProjectPatchLevel = 0