Skip to content

Commit

Permalink
Tweak installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Augustsson authored and Lennart Augustsson committed Nov 16, 2024
1 parent f57a1f1 commit cb7ae3b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,19 @@ MDIST=dist-mcabal
BASE=base-$(VERSION)
BASEMODULES=Control.Applicative Control.Arrow Control.Category Control.DeepSeq Control.Error Control.Exception Control.Monad Control.Monad.Fail Control.Monad.Fix Control.Monad.IO.Class Control.Monad.ST Control.Monad.Zip Data.Array Data.Bifoldable Data.Bifunctor Data.Bitraversable Data.Bits Data.Bool Data.Bounded Data.ByteString Data.Char Data.Complex Data.Constraint Data.Data Data.Double Data.Dynamic Data.Either Data.Enum Data.Eq Data.Fixed Data.Float Data.FloatW Data.Floating Data.Foldable Data.Foldable1 Data.Fractional Data.Function Data.Functor Data.Functor.Classes Data.Functor.Compose Data.Functor.Const Data.Functor.Contravariant Data.Functor.Identity Data.Functor.Product Data.Functor.Sum Data.Hashable Data.IOArray Data.IORef Data.Int Data.Integer Data.Integral Data.Ix Data.Kind Data.List Data.List.NonEmpty Data.Maybe Data.Monoid Data.Num Data.Ord Data.Proxy Data.Ratio Data.Real Data.RealFloat Data.RealFrac Data.Records Data.STRef Data.Semigroup Data.String Data.Text Data.Traversable Data.Tuple Data.Tuple.Instances Data.Type.Equality Data.TypeLits Data.Typeable Data.Version Data.Void Data.Word Data.ZipList Debug.Trace Foreign Foreign.C Foreign.C.Error Foreign.C.String Foreign.C.Types Foreign.ForeignPtr Foreign.Marshal Foreign.Marshal.Alloc Foreign.Marshal.Array Foreign.Marshal.Error Foreign.Marshal.Utils Foreign.Ptr Foreign.Storable GHC.Stack GHC.Types Mhs.Builtin Numeric Numeric.FormatFloat Numeric.Natural Prelude System.Cmd System.Console.GetOpt System.Compress System.Directory System.Environment System.Exit System.IO System.IO.Error System.IO.MD5 System.IO.PrintOrRun System.IO.Serialize System.IO.TimeMilli System.IO.Unsafe System.Info System.Process Text.Printf Text.ParserCombinators.ReadP Text.ParserCombinators.ReadPrec Text.Read Text.Read.Lex Text.Show Unsafe.Coerce

$(MCABALBIN)/mhs: bin/mhs
$(MCABALBIN)/mhs: bin/mhs src/runtime/*.[ch]
@mkdir -p $(MCABALBIN)
@mkdir -p $(MDIST)
@echo 'module Paths_MicroHs where { import Prelude(); import MHSPrelude; import Data.Version; version :: Version; version = makeVersion [$(HVERSION)]; getDataDir :: IO FilePath; getDataDir = return "$(MDATA)" }' > $(MDIST)/Paths_MicroHs.hs
bin/mhs -z $(MHSINCNP) -i$(MDIST) MicroHs.Main -o$(MCABALBIN)/mhs
@mkdir -p $(MRUNTIME)
cp src/runtime/*.[ch] $(MRUNTIME)

$(MCABALBIN)/cpphs: bin/cpphs
@mkdir -p $(MCABALBIN)
cp bin/cpphs $(MCABALBIN)

$(MCABALMHS)/packages/$(BASE).pkg: bin/mhs lib/*.hs lib/*/*.hs lib/*/*/*.hs
@mkdir -p $(MRUNTIME)
cp src/runtime/*.[ch] $(MRUNTIME)
bin/mhs -P$(BASE) -o$(BASE).pkg -ilib $(BASEMODULES)
bin/mhs -Q $(BASE).pkg $(MCABALMHS)
@rm $(BASE).pkg
Expand All @@ -238,6 +238,7 @@ install: $(MCABALBIN)/mhs $(MCABALBIN)/cpphs $(MCABALMHS)/packages/$(BASE).pkg

preparedist: newmhsz bootstrapcpphs generated/mcabal.c

minstall: $(MCABALBIN)/mhs
minstall: bin/cpphs bin/mcabal $(MCABALBIN)/mhs
cp bin/cpphs bin/mcabal $(MCABALBIN)
PATH=$(MCABALBIN):"$$PATH" cd lib; mcabal install
PATH=$(MCABALBIN):"$$PATH" mcabal install
cd lib; PATH=$(MCABALBIN):"$$PATH" mcabal install

0 comments on commit cb7ae3b

Please sign in to comment.