1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
libraries/ghc-boot_PACKAGE = ghc-boot
libraries/ghc-boot_dist-install_GROUP = libraries
$(if $(filter ghc-boot,$(PACKAGES_STAGE0)),$(eval $(call build-package,libraries/ghc-boot,dist-boot,0)))
$(if $(filter ghc-boot,$(PACKAGES_STAGE1)),$(eval $(call build-package,libraries/ghc-boot,dist-install,1)))
$(if $(filter ghc-boot,$(PACKAGES_STAGE2)),$(eval $(call build-package,libraries/ghc-boot,dist-install,2)))
libraries/ghc-boot/dist-boot/build/GHC/Version.hs \
libraries/ghc-boot/dist-install/build/GHC/Version.hs: mk/project.mk | $$(dir $$@)/.
$(call removeFiles,$@)
@echo "module GHC.Version where" >> $@
@echo >> $@
@echo 'import Prelude -- See Note [Why do we import Prelude here?]' >> $@
@echo >> $@
@echo 'cProjectGitCommitId :: String' >> $@
@echo 'cProjectGitCommitId = "$(ProjectGitCommitId)"' >> $@
@echo >> $@
@echo 'cProjectVersion :: String' >> $@
@echo 'cProjectVersion = "$(ProjectVersion)"' >> $@
@echo >> $@
@echo 'cProjectVersionInt :: String' >> $@
@echo 'cProjectVersionInt = "$(ProjectVersionInt)"' >> $@
@echo >> $@
@echo 'cProjectPatchLevel :: String' >> $@
@echo 'cProjectPatchLevel = "$(ProjectPatchLevel)"' >> $@
@echo >> $@
@echo 'cProjectPatchLevel1 :: String' >> $@
@echo 'cProjectPatchLevel1 = "$(ProjectPatchLevel1)"' >> $@
@echo >> $@
@echo 'cProjectPatchLevel2 :: String' >> $@
@echo 'cProjectPatchLevel2 = "$(ProjectPatchLevel2)"' >> $@
@echo done.
libraries/ghc-boot/dist-boot/package-data.mk: \
libraries/ghc-boot/dist-boot/build/GHC/Version.hs
libraries/ghc-boot/dist-install/package-data.mk: \
libraries/ghc-boot/dist-install/build/GHC/Version.hs
libraries/ghc-boot/dist-boot/build/GHC/Platform/Host.hs \
libraries/ghc-boot/dist-install/build/GHC/Platform/Host.hs: mk/project.mk | $$(dir $$@)/.
$(call removeFiles,$@)
@echo "module GHC.Platform.Host where" >> $@
@echo >> $@
@echo 'import GHC.Platform.ArchOS' >> $@
@echo >> $@
@echo 'hostPlatformArch :: Arch' >> $@
@echo 'hostPlatformArch = $(HaskellHostArch)' >> $@
@echo >> $@
@echo 'hostPlatformOS :: OS' >> $@
@echo 'hostPlatformOS = $(HaskellHostOs)' >> $@
@echo >> $@
@echo 'hostPlatformArchOS :: ArchOS' >> $@
@echo 'hostPlatformArchOS = ArchOS hostPlatformArch hostPlatformOS' >> $@
@echo done.
libraries/ghc-boot/dist-boot/package-data.mk: \
libraries/ghc-boot/dist-boot/build/GHC/Platform/Host.hs
libraries/ghc-boot/dist-install/package-data.mk: \
libraries/ghc-boot/dist-install/build/GHC/Platform/Host.hs
|