1 ############################################################################
3 # This is the top-level Makefile for GHC
8 # Builds GHC, then builds the libraries,
9 # then uses this GHC ("stage 1") to build itself
16 # bootstrap2 + we build GHC one more time ("stage 3")
19 # Just build up to stage 1
22 # Just build stage 2 (stage 1 must be built)
25 # Just build stage 3 (stage 2 must be built)
31 # Install everything, including stage 2 compiler by default
32 # (override with stage=3, for example).
35 # Make a source dist (WARNING: runs 'make distclean' first)
38 # Builds a binary distribution
41 # Builds an HC-file bundle, for bootstrapping
43 # clean, distclean, maintainer-clean
44 # Increasing levels of cleanliness
46 ############################################################################
49 include $(TOP)/mk/boilerplate.mk
52 # Order is important! It's e.g. necessary to descend into include/
53 # before the rest to have a config.h, etc.
55 # If we're booting from .hc files, swap the order
56 # we descend into subdirs - to boot utils must be before driver.
58 .PHONY: stage1 stage2 stage3 bootstrap bootstrap2 bootstrap3
60 # We can't 'make boot' in libraries until stage1 is built
61 ifeq "$(BootingFromHc)" "YES"
62 SUBDIRS_NOLIB = includes rts compat compiler docs utils driver
64 SUBDIRS_NOLIB = includes compat utils driver docs compiler rts
67 SUBDIRS = $(SUBDIRS_NOLIB) libraries
69 # Sanity check that all the core libraries are in the tree, to catch
70 # failure to run darcs-all.
72 @for d in `cat libraries/core-packages`; do \
73 if test ! -d libraries/$$d; then \
74 echo "Looks like you're missing libraries/$$d,"; \
75 echo "maybe you haven't done 'sh darcs-all get'?"; \
80 stage1 : check-packages
81 $(MAKE) -C utils/mkdependC boot
82 @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
83 for i in $(SUBDIRS_NOLIB); do \
84 echo "------------------------------------------------------------------------"; \
85 echo "== $(MAKE) boot $(MFLAGS);"; \
86 echo " in $(shell pwd)/$$i"; \
87 echo "------------------------------------------------------------------------"; \
88 $(MAKE) --no-print-directory -C $$i $(MFLAGS) boot; \
89 if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \
91 for i in $(SUBDIRS_NOLIB); do \
92 echo "------------------------------------------------------------------------"; \
93 echo "== $(MAKE) all $(MFLAGS);"; \
94 echo " in $(shell pwd)/$$i"; \
95 echo "------------------------------------------------------------------------"; \
96 $(MAKE) --no-print-directory -C $$i $(MFLAGS) all; \
97 if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \
99 @$(MAKE) -C libraries boot
100 @$(MAKE) -C libraries all
102 stage2 : check-packages
103 $(MAKE) -C compiler boot stage=2
104 $(MAKE) -C compiler stage=2
106 stage3 : check-packages
107 $(MAKE) -C compiler boot stage=3
108 $(MAKE) -C compiler stage=3
110 bootstrap : bootstrap2
115 bootstrap3 : bootstrap2
120 # -----------------------------------------------------------------------------
123 # We want to install the stage 2 bootstrapped compiler by default, but we let
124 # the user override this by saying 'make install stage=1', for example.
126 INSTALL_STAGE = stage=2
131 # Same as default rule, but we pass $(INSTALL_STAGE) to $(MAKE) too
132 install :: check-packages
133 @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
134 for i in $(SUBDIRS); do \
135 echo "------------------------------------------------------------------------"; \
136 echo "== $(MAKE) $@ $(MFLAGS);"; \
137 echo " in $(shell pwd)/$$i"; \
138 echo "------------------------------------------------------------------------"; \
139 $(MAKE) --no-print-directory -C $$i $(INSTALL_STAGE) $(MFLAGS) $@; \
140 if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \
143 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
144 # These files need to be in the InstallShield
145 # INSTALL_DATAS rather than INSTALL_DOCS is used so these files go
146 # in the top-level directory of the distribution
147 INSTALL_DATAS += ANNOUNCE LICENSE README
150 # If installing on Windows with MinGW32, copy the gcc compiler, headers and libs
151 # and the perl interpreter and dll into the GHC prefix directory.
152 # Gcc and Perl source locations derived from configuration data.
153 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
154 ifneq "$(WhatGccIsCalled)" ""
156 -mkdir $(prefix)/gcc-lib
157 -mkdir $(prefix)/include
158 -mkdir $(prefix)/include/mingw
159 -cp -rp $(GccDir)../include/* $(prefix)/include/mingw
160 -cp -rp $(GccDir)../lib/gcc-lib/mingw32/$(GccVersion)/* $(prefix)/gcc-lib
161 -cp -rp $(GccDir)../lib/gcc/mingw32/$(GccVersion)/* $(prefix)/gcc-lib
162 -cp -rp $(GccDir)../libexec/gcc/mingw32/$(GccVersion)/* $(prefix)/gcc-lib
163 -cp $(GccDir)../lib/*.* $(prefix)/gcc-lib
164 -cp $(GccDir)gcc.exe $(prefix)
165 -cp $(GccDir)as.exe $(prefix)/gcc-lib
166 -cp $(GccDir)ld.exe $(prefix)/gcc-lib
167 -cp $(GccDir)dllwrap.exe $(prefix)/gcc-lib
168 -cp $(GccDir)dlltool.exe $(prefix)/gcc-lib
169 -cp $(GhcDir)../perl.exe $(prefix)
170 -cp $(GhcDir)../perl56.dll $(prefix)
175 @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
176 for i in $(SUBDIRS); do \
177 echo "------------------------------------------------------------------------"; \
178 echo "== $(MAKE) $@ $(MFLAGS);"; \
179 echo " in $(shell pwd)/$$i"; \
180 echo "------------------------------------------------------------------------"; \
181 $(MAKE) --no-print-directory -C $$i $(INSTALL_STAGE) $(MFLAGS) $@; \
182 if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \
185 # -----------------------------------------------------------------------------
186 # Making a binary distribution
188 # `dist' `binary-dist'
189 # Create a distribution tar file for this program. The tar file
190 # should be set up so that the file names in the tar file start with
191 # a subdirectory name which is the name of the package it is a
192 # distribution for. This name can include the version number.
194 # For example, the distribution tar file of GCC version 1.40 unpacks
195 # into a subdirectory named `gcc-1.40'.
197 # The easiest way to do this is to create a subdirectory
198 # appropriately named, use ln or cp to install the proper files in
199 # it, and then tar that subdirectory.
201 # The dist target should explicitly depend on all non-source files
202 # that are in the distribution, to make sure they are up to date in
203 # the distribution. See Making Releases.
205 # binary-dist is a GHC addition for binary distributions
208 ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
209 BinDistShScripts = ghc-$(ProjectVersion) ghci-$(ProjectVersion) ghc-pkg-$(ProjectVersion) hsc2hs
214 BinDistPrlScripts = ghcprof
215 BinDistLibPrlScripts = ghc-asm ghc-split
216 BinDistBins = hp2ps runghc
217 BinDistOptBins = runhaskell
218 BinDistLinks = ghc ghci ghc-pkg
219 BinDistLibSplicedFiles = package.conf
220 BinDistDirs = includes compiler docs driver libraries rts utils
222 BIN_DIST_NAME=ghc-$(ProjectVersion)
223 BIN_DIST_TMPDIR=$(FPTOOLS_TOP_ABS)
225 BIN_DIST_TOP= distrib/Makefile-bin.in \
226 distrib/configure-bin.ac \
231 utils/mkdirhier/mkdirhier \
237 ifeq "$(darwin_TARGET_OS)" "1"
238 BIN_DIST_TOP+=mk/fix_install_names.sh
241 .PHONY: binary-dist-pre binary-dist binary-pack
243 binary-dist:: binary-dist-pre
246 ifeq "$(BIN_DIST)" ""
247 @echo "WARNING: To run the binary-dist target, you need to set BIN_DIST=1 in mk/build.mk" && exit 1
249 -rm -rf $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)
250 -$(RM) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME).tar.gz
251 @for i in $(BinDistDirs); do \
252 if test -d "$$i"; then \
253 echo $(MKDIRHIER) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM); \
254 $(MKDIRHIER) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM); \
255 echo $(MKDIRHIER) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM); \
256 $(MKDIRHIER) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM); \
257 echo $(MKDIRHIER) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \
258 $(MKDIRHIER) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \
259 echo $(MAKE) -C $$i $(MFLAGS) $(INSTALL_STAGE) install \
260 prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
261 exec_prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
262 bindir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM) \
263 libdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
264 libexecdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
265 datadir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \
266 $(MAKE) -C $$i $(MFLAGS) $(INSTALL_STAGE) install \
267 prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
268 exec_prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
269 bindir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM) \
270 libdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
271 libexecdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
272 datadir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \
277 @for i in $(BIN_DIST_TOP); do \
278 if test -f "$$i"; then \
279 echo cp $$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME); \
280 cp $$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME); \
283 @echo "Configuring the Makefile for this project..."
284 touch $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
285 echo "package = ghc" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
286 echo "version = $(ProjectVersion)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
287 echo "PACKAGE_SH_SCRIPTS = $(BinDistShScripts)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
288 echo "PACKAGE_PRL_SCRIPTS = $(BinDistPrlScripts)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
289 echo "PACKAGE_LIB_PRL_SCRIPTS = $(BinDistLibPrlScripts)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
290 echo "PACKAGE_LIB_SPLICED_FILES = $(BinDistLibSplicedFiles)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
291 echo "PACKAGE_BINS = $(BinDistBins)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
292 echo "PACKAGE_OPT_BINS = $(BinDistOptBins)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
293 echo "PACKAGE_LINKS = $(BinDistLinks)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
294 cat $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile-bin.in >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
295 @echo "Generating a shippable configure script.."
296 $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure-bin.ac $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/configure.ac
297 ( cd $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME); autoconf )
299 # binary dist'ing the documentation.
300 # The default documentation to build/install is given below; overrideable
301 # via build.mk or the 'make' command-line.
303 ifndef BINDIST_DOC_WAYS
305 ifneq "$(XSLTPROC)" ""
306 BINDIST_DOC_WAYS = html
308 BINDIST_DOC_WAYS += ps pdf
310 ifneq "$(PDFXMLTEX)" ""
311 BINDIST_DOC_WAYS += pdf
315 BINDIST_DOC_WAYS += ps
321 endif # BINDIST_DOC_WAYS
324 ifneq "$(DIR_DOCBOOK_XSL)" ""
325 @for i in $(BinDistDirs); do \
326 if test -d "$$i"; then \
327 $(MAKE) -C $$i $(MFLAGS) $(BINDIST_DOC_WAYS); \
328 echo $(MAKE) -C $$i $(MFLAGS) install-docs XMLDocWays="$(BINDIST_DOC_WAYS)" \
329 prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
330 exec_prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
331 bindir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM) \
332 libdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
333 libexecdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
334 datadir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \
335 $(MAKE) -C $$i $(MFLAGS) install-docs XMLDocWays="$(BINDIST_DOC_WAYS)" \
336 prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
337 exec_prefix=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME) \
338 bindir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM) \
339 libdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
340 libexecdir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM) \
341 datadir=$(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/share; \
346 # Rename scripts to $i.prl and $i.sh where necessary.
347 # ToDo: do this in a cleaner way...
349 ifneq "$(BinDistPrlScripts)" ""
351 @for i in $(BinDistPrlScripts); do \
352 echo "Renaming $$i to $$i.prl"; \
353 $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i.prl; \
357 ifneq "$(BinDistLibPrlScripts)" ""
359 @for i in $(BinDistLibPrlScripts); do \
360 echo "Renaming $$i to $$i.prl"; \
361 $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM)/$$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/lib/$(TARGETPLATFORM)/$$i.prl; \
365 ifneq "$(BinDistShScripts)" ""
367 @for i in $(BinDistShScripts); do \
368 if test -x $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i ; then \
369 echo "Renaming $$i to $$i.sh"; \
370 $(MV) $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/bin/$(TARGETPLATFORM)/$$i.sh; \
376 # Do this separately for now
379 ( cd $(BIN_DIST_TMPDIR); $(TAR) chzf $(BIN_DIST_NAME).tar.gz $(BIN_DIST_NAME) )
382 .PHONY: package-way-dist
384 ( cd $(BIN_DIST_TMPDIR); $(FIND) $(BIN_DIST_NAME)/ \( -name "*$(_way).a" -o -name "*.$(way_)hi" \) -print | xargs tar cvf $(BIN_DIST_TMPDIR)/ghc-$(ProjectVersion)-$(way)-$(TARGETPLATFORM).tar )
385 gzip $(BIN_DIST_TMPDIR)/ghc-$(ProjectVersion)-$(way)-$(TARGETPLATFORM).tar
390 ( cd $(BIN_DIST_TMPDIR); $(FIND) $(BIN_DIST_NAME)/ \( -name "*$(_way).a" -o -name "*.$(way_)hi" \) -print -exec $(RM) {} \; )
394 @echo "Mechanical and super-natty! Inspect the result and *if* happy; freeze, sell and get some sleep!"
396 # -----------------------------------------------------------------------------
397 # Building source distributions
404 # WARNING: `make dist' calls `make distclean' before tarring up the tree.
410 # Directory in which we're going to build the src dist
412 SRC_DIST_NAME=ghc-$(ProjectVersion)
413 SRC_DIST_DIR=$(shell pwd)/$(SRC_DIST_NAME)
416 # Files to include in source distributions
418 SRC_DIST_DIRS += docs distrib $(filter-out docs distrib,$(SUBDIRS))
420 configure.ac config.guess config.sub configure \
421 aclocal.m4 README ANNOUNCE HACKING LICENSE Makefile install-sh \
422 ghc.spec.in mk/bootstrap.mk \
423 mk/boilerplate.mk mk/config.h.in mk/config.mk.in mk/opts.mk \
424 mk/paths.mk mk/package.mk mk/suffix.mk mk/target.mk \
425 mk/fptools.css mk/fix_install_names.sh
427 # clean the tree first, leaving certain extra files in place (eg. configure)
431 -rm -rf $(SRC_DIST_DIR)
432 -$(RM) $(SRC_DIST_NAME).tar.gz
433 mkdir $(SRC_DIST_DIR)
434 mkdir $(SRC_DIST_DIR)/mk
435 $(FIND) $(SRC_DIST_DIRS) -type d \( -name _darcs -prune -o -name SRC -prune -o -name "autom4te*" -prune -o -print \) | sed -e 's!.*!mkdir "$(SRC_DIST_DIR)/&"!' | sh
436 $(FIND) $(SRC_DIST_DIRS) $(SRC_DIST_FILES) -name _darcs -prune -o -name SRC -prune -o -name "autom4te*" -prune -o -name "*~" -prune -o -name ".cvsignore" -prune -o -name "\#*" -prune -o -name ".\#*" -prune -o -name "log" -prune -o -name "*-SAVE" -prune -o -name "*.orig" -prune -o -name "*.rej" -prune -o ! -type d -print | sed -e 's!.*!$(LN_S) "$(FPTOOLS_TOP_ABS)/&" "$(SRC_DIST_DIR)/&"!' | sh
438 # Automatic generation of a MANIFEST file for a source distribution
439 # tree that is ready to go.
441 cd $(SRC_DIST_DIR); $(FIND) . \( -type l -o -type f \) -exec ls -lLG {} \; | sed -e 's/\.\///' > MANIFEST
443 dist-package :: dist-package-tar-gz
445 SRC_DIST_PATHS = $(patsubst %, $(SRC_DIST_NAME)/%, $(SRC_DIST_FILES) $(SRC_DIST_DIRS))
447 dist-package-tar-bz2 ::
448 BZIP2=-9 $(TAR) chjf $(SRC_DIST_NAME)-src.tar.bz2 $(SRC_DIST_NAME) || $(RM) $(SRC_DIST_NAME)-src.tar.bz2
450 dist-package-tar-gz ::
451 $(TAR) chzf $(SRC_DIST_NAME)-src.tar.gz $(SRC_DIST_NAME) || $(RM) $(SRC_DIST_NAME)-src.tar.gz
454 cd ..; $(LN_S) $(FPTOOLS_TOP_ABS) $(SRC_DIST_NAME) && \
455 $(ZIP) $(ZIP_OPTS) -r $(SRC_DIST_NAME)-src.zip $(SRC_DIST_PATHS)
457 # -----------------------------------------------------------------------------
461 $(RM) -r ghc-$(ProjectVersion)
462 $(LN_S) . ghc-$(ProjectVersion)
463 $(FIND) ghc-$(ProjectVersion)/compiler \
464 ghc-$(ProjectVersion)/utils \
465 ghc-$(ProjectVersion)/compat \
466 ghc-$(ProjectVersion)/libraries -follow \
467 \( -name "*.hc" -o -name "*_hsc.[ch]" -o -name "*_stub.[ch]" \) -print > hc-files-to-go
468 for f in `$(FIND) ghc-$(ProjectVersion)/compiler ghc-$(ProjectVersion)/utils ghc-$(ProjectVersion)/libraries -name "*.hsc" -follow -print` ""; do \
469 if test "x$$f" != "x" && test -e `echo "$$f" | sed 's/hsc$$/hs/g'`; then \
470 echo `echo "$$f" | sed 's/hsc$$/hs/g' ` >> hc-files-to-go ; \
473 for f in `$(FIND) ghc-$(ProjectVersion)/compiler ghc-$(ProjectVersion)/rts -name "*.cmm" -follow -print` ""; do \
474 if test "x$$f" != "x"; then \
475 echo `echo "$$f" | sed 's/cmm$$/hc/g' ` >> hc-files-to-go ; \
478 echo ghc-$(ProjectVersion)/libraries/base/GHC/PrimopWrappers.hs >> hc-files-to-go
479 echo ghc-$(ProjectVersion)/compiler/parser/Parser.hs >> hc-files-to-go
480 echo ghc-$(ProjectVersion)/compiler/parser/ParserCore.hs >> hc-files-to-go
481 echo ghc-$(ProjectVersion)/compiler/main/ParsePkgConf.hs >> hc-files-to-go
482 echo ghc-$(ProjectVersion)/libraries/haskell-src/Language/Haskell/Parser.hs >> hc-files-to-go
483 tar czf ghc-$(ProjectVersion)-$(TARGETPLATFORM)-hc.tar.gz `cat hc-files-to-go`
485 # -----------------------------------------------------------------------------
488 CLEAN_FILES += hc-files-to-go *-hc.tar.gz
490 DIST_CLEAN_FILES += config.cache config.status mk/config.h mk/stamp-h \
491 ghc.spec docs/users_guide/ug-book.xml
493 # don't clean config.mk: it's needed when cleaning stuff later on
494 LATE_DIST_CLEAN_FILES += mk/config.mk
497 $(RM) -rf autom4te.cache
499 # -----------------------------------------------------------------------------
501 # Turn off target.mk's rules for 'all', 'boot' and 'install'.
504 NO_INSTALL_TARGET=YES
506 include $(TOP)/mk/target.mk
508 # -----------------------------------------------------------------------------