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
|
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
|