summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-10-14 15:54:57 +0100
committerIan Lynagh <igloo@earth.li>2012-10-14 15:54:57 +0100
commit70a76bfb63a45730b5a295c4d19f82301df20ad4 (patch)
tree7b1f061bae6ab92fd5d62114562180bc8dfb7f29
parentbbd913984214d978ee1efe34cce0090669a2dd5e (diff)
downloadhaskell-70a76bfb63a45730b5a295c4d19f82301df20ad4.tar.gz
Use Cabal to build ghctags
-rw-r--r--utils/ghctags/ghc.mk6
-rw-r--r--utils/ghctags/ghctags.cabal20
2 files changed, 23 insertions, 3 deletions
diff --git a/utils/ghctags/ghc.mk b/utils/ghctags/ghc.mk
index b167a3c069..949a05174b 100644
--- a/utils/ghctags/ghc.mk
+++ b/utils/ghctags/ghc.mk
@@ -10,9 +10,9 @@
#
# -----------------------------------------------------------------------------
-utils/ghctags_dist-install_MODULES = Main
-utils/ghctags_dist-install_HC_OPTS = -package ghc
+utils/ghctags_USES_CABAL = YES
+utils/ghctags_PACKAGE = ghctags
+utils/ghctags_dist-install_PROG = ghctags$(exeext)
utils/ghctags_dist-install_INSTALL = NO
utils/ghctags_dist-install_INSTALL_INPLACE = YES
-utils/ghctags_dist-install_PROG = ghctags$(exeext)
$(eval $(call build-prog,utils/ghctags,dist-install,2))
diff --git a/utils/ghctags/ghctags.cabal b/utils/ghctags/ghctags.cabal
new file mode 100644
index 0000000000..9ca079b71a
--- /dev/null
+++ b/utils/ghctags/ghctags.cabal
@@ -0,0 +1,20 @@
+Name: ghctags
+Version: 0.1
+Copyright: XXX
+License: BSD3
+-- XXX License-File: LICENSE
+Author: XXX
+Maintainer: XXX
+Synopsis: XXX
+Description:
+ XXX
+Category: Development
+build-type: Simple
+cabal-version: >=1.2
+
+Executable ghctags
+ Main-Is: Main.hs
+
+ Build-Depends: base >= 4 && < 5,
+ ghc
+