summaryrefslogtreecommitdiff
path: root/utils/ghc-pkg/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Add a header to all build system files:Simon Marlow2009-04-281-0/+12
| | | | | | | | | | | | | | # ----------------------------------------------------------------------------- # # (c) 2009 The University of Glasgow # # This file is part of the GHC build system. # # To understand how the build system works and how to modify it, see # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying # # -----------------------------------------------------------------------------
* GHC new build system megapatchIan Lynagh2009-04-261-21/+3
|
* Update the build system to handle building and using haddock2Ian Lynagh2008-08-281-2/+2
| | | | | One side-effect of this is that we need to build the install-utils with stage2 rather than stage1 as we need the ghc package.
* bindist fixesIan Lynagh2008-08-101-0/+1
|
* Build system tweaksIan Lynagh2008-07-181-0/+1
|
* More build system changes; hasktags is now built with CabalIan Lynagh2008-07-181-42/+4
|
* Remove a commentIan Lynagh2008-07-181-3/+0
|
* More build system changes; ghc-pkg is now built with CabalIan Lynagh2008-07-181-113/+42
|
* Get rid of compat/Ian Lynagh2008-07-081-8/+0
| | | | | | Compat.Unicode is not utils/Unicode in the compiler. We build the hpc package with the stage1 compiler. Nothing else in the compat package was still used.
* Remove Cabal modules from compatIan Lynagh2008-07-031-0/+2
| | | | We now get them from the bootstrapping package.conf instead
* Copy the right ghc-pkg.bin into bindistsIan Lynagh2008-03-051-1/+7
|
* Mac OS X deployment target: piping opts through MakefilesManuel M T Chakravarty2008-02-211-0/+9
|
* All installed Haskell prgms have an inplace and an installed versionManuel M T Chakravarty2008-02-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | - GHC installs a range of compiled Haskell programs in addition to the actual compiler. To ensure that they all run on the platform targeted by the build (which may have different libraries installed than the build host), we need to make sure that all compiled Haskell code going into an install is build with the stage 1 compiler, not the bootstrap compiler. Getting this right is especially important on the Mac to enable builds that work on Mac OS X versions that are older than the one performing the build. - For all installed utils implemented in Haskell (i.e., ghc-pkg, hasktags, hsc2hs, runghc, hpc, and pwd) we compile two versions, an inplace version and a version for installation. The former is build by the bootstrap compiler during the stage 1 build and the latter is build by the stage 1 compiler during the stage 2 build. - This is really very much as the setup for ghc itself, only that we don't use separate stage1/ and stage2/ build directories. Instead, we clean before each build. CAVEAT: This only works properly if invoked from the toplevel Makefile. - Instead of UseStage1=YES (as used by the previous binary-dist-specific recompilation), we now use the same $(stage) variables as used for the compiler proper - to increase uniformity and to avoid extra conditionals for the install target.
* FIX #1839, #1463, by supporting ghc-pkg bulk queries with substring matchingclaus.reinke@talk21.com2008-01-211-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - #1839 asks for a ghc-pkg dump feature, #1463 for the ability to query the same fields in several packages at once. - this patch enables substring matching for packages in 'list', 'describe', and 'field', and for modules in find-module. it also allows for comma-separated multiple fields in 'field'. substring matching can optionally ignore cases to avoid the rather unpredictable capitalisation of packages. - the patch is not quite as full-featured as the one attached to #1839, but avoids the additional dependency on regexps. open ended substrings are indicated by '*' (only the three forms prefix*, *suffix, *infix* are supported) - on windows, the use of '*' for package/module name globbing leads to conflicts with filename globbing: by default, windows programs are self-globbing, and bash adds another level of globbing on top of that. it seems impossible to escape '*' from both levels of globbing, so we disable default globbing for ghc-pkg and ghc-pkg-inplace. users of bash will still have filename globbing available, users of cmd won't. - if it is considered necessary to reenable filename globbing for cmd users, it should be done selectively, only for filename parameters. to this end, the patch includes a glob.hs program which simply echoes its parameters after filename globbing. see the commented out glob command in Main.hs for usage or testing. - this covers both tickets, and permits for the most common query patterns (finding all packages contributing to the System. hierarchy, finding all regex or string packages, listing all package maintainers or haddock directories, ..), which not only i have wanted to have for a long time. examples (the quotes are needed to escape shell-based filename globbing and should be omitted in cmd.exe): ghc-pkg list '*regex*' --ignore-case ghc-pkg list '*string*' --ignore-case ghc-pkg list '*gl*' --ignore-case ghc-pkg find-module 'Data.*' ghc-pkg find-module '*Monad*' ghc-pkg field '*' name,maintainer ghc-pkg field '*' haddock-html ghc-pkg describe '*'
* FIX #1963: catch Ctrl-C and clean up properlySimon Marlow2007-12-131-0/+4
|
* Removed install-dirs target, it is unnecessary and leads to stray empty ↵sven.panne@aedion.de2007-09-091-0/+1
| | | | | | directories MERGE TO STABLE
* Remove hardtop_plat/FPTOOLS_TOP_ABS_PLATFORMIan Lynagh2007-09-061-5/+1
| | | | | | | They are now the same as hardtop/FPTOOLS_TOP_ABS, so use those instead. Also removed some substitutions of / for \, as we now use a Haskell program to find the top path, and it only makes paths with /s in.
* Use DESTDIR when installingIan Lynagh2007-08-281-1/+1
|
* Link ghc-pkg and hpc with containers if building ghc 6.7 or newerEsa Ilari Vuokko2007-08-211-0/+4
|
* compile the -inplace programs using $(HC), not $(GHC)Simon Marlow2007-07-311-1/+1
| | | | $(UseStage1) modifies $(HC) rather than $(GHC)
* make inplace scripts less sensitive to /bin/sh quoting by avoiding \Simon Marlow2007-06-231-1/+1
|
* further fixes to the inplace scriptsLemmih2007-06-211-2/+2
|
* Fix problems with new inplace stuff on CygwinSimon Marlow2007-06-211-1/+6
|
* Use a real binary instead of scripts for ghc-inplaceSimon Marlow2007-06-211-19/+21
| | | | | | Fixes various problems with getting the scripts right on Windows. Binaries are universally executable by /bin/sh, cmd.exe and rawSystem, so this allows us to remove some platform-specific hacks.
* Fix bindist creationIan Lynagh2007-06-011-0/+5
| | | | | Bindists should now work again, when doing "make install" at least. "make in-place" is probably still broken.
* Rework the build system a bitIan Lynagh2007-05-311-53/+26
| | | | | | Key changes: * Always build as if BIN_DIST is 1. BIN_DIST is thus removed. * Libraries are configured with prefix set to $$topdir rather than $(prefix)
* Remove ghc_ge_504 (it's required to be true now anyway)Ian Lynagh2007-05-091-4/+0
|
* don't forget to clean the .bat filesSimon Marlow2007-04-271-0/+2
| | | | See bug #1295
* Fix bat-script generation for MSyssimonpj@microsoft.com2007-04-181-1/+2
| | | | | | | | | | | The bat-script generation was using the wrong paths, in ghc-inplace ghc-pkg hsc2hs plus there was a double-backslah in the latter two which was wrong. This patch fixes both. See "MSys Note 3" in compiler/Makefile
* Don't use compat when compiling utils with stage1Ian Lynagh2007-02-061-0/+2
|
* Emit .bat version of -inplace script on Windows platformssof@galois.com2006-11-171-0/+8
|
* Where we use $(GhcHcOpts), also add $(GhcStage1HcOpts)Simon Marlow2006-08-091-1/+1
| | | | This fixes building the compiler with -prof in $(GhcStage1HcOpts)
* comment formattingSimon Marlow2006-07-251-1/+1
|
* Reorganisation of the source treeSimon Marlow2006-04-071-0/+111
Most of the other users of the fptools build system have migrated to Cabal, and with the move to darcs we can now flatten the source tree without losing history, so here goes. The main change is that the ghc/ subdir is gone, and most of what it contained is now at the top level. The build system now makes no pretense at being multi-project, it is just the GHC build system. No doubt this will break many things, and there will be a period of instability while we fix the dependencies. A straightforward build should work, but I haven't yet fixed binary/source distributions. Changes to the Building Guide will follow, too.