Implement new `-fwarn-noncanonical-monad-instances`
[ghc.git] / utils / mkUserGuidePart / ghc.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 # http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13 utils/mkUserGuidePart_GENERATED_FLAGS_SETS := \
14 codegen \
15 compiler-debugging \
16 cpp \
17 finding-imports \
18 interactive \
19 interface-files \
20 keeping-intermediates \
21 language \
22 linking \
23 misc \
24 modes \
25 optimization \
26 optimization-levels \
27 packages \
28 phase-programs \
29 phases \
30 phase-specific \
31 platform-specific \
32 plugin \
33 profiling \
34 program-coverage \
35 recompilating-checking \
36 recompilation-checking \
37 redirecting-output \
38 temporary-files \
39 verbosity \
40 warnings
41
42 utils/mkUserGuidePart_GENERATED_RST_SOURCES := \
43 $(addprefix docs/users_guide/flags-,$(addsuffix .gen.rst,$(utils/mkUserGuidePart_GENERATED_FLAGS_SETS))) \
44 docs/users_guide/what_glasgow_exts_does.gen.rst \
45 docs/man/all-flags.gen.rst
46
47 utils/mkUserGuidePart_USES_CABAL = YES
48 utils/mkUserGuidePart_PACKAGE = mkUserGuidePart
49 utils/mkUserGuidePart_dist_PROGNAME = mkUserGuidePart
50 utils/mkUserGuidePart_dist_INSTALL_INPLACE = YES
51
52 $(eval $(call build-prog,utils/mkUserGuidePart,dist,2))
53 $(eval $(call clean-target,utils/mkUserGuidePart,gen,$(utils/mkUserGuidePart_GENERATED_RST_SOURCES)))
54
55 $(utils/mkUserGuidePart_GENERATED_RST_SOURCES) : $(mkUserGuidePart_INPLACE)
56 $(mkUserGuidePart_INPLACE)
57
58 all_utils/mkUserGuidePart: $(mkUserGuidePart_INPLACE)