Skip to content

Commit 4846579

Browse files
committed
New installation script
1 parent e389321 commit 4846579

13 files changed

Lines changed: 3055 additions & 3060 deletions

File tree

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ nfibtest: bin/mhs bin/mhseval
312312

313313
######
314314

315-
VERSION=0.15.10.0
316-
HVERSION=0,15,10,0
315+
VERSION=0.15.11.0
316+
HVERSION=0,15,11,0
317317
MCABAL=$(HOME)/.mcabal
318318
MCABALMHS=$(MCABAL)/mhs-$(VERSION)
319319
MDATA=$(MCABALMHS)/packages/mhs-$(VERSION)/data
@@ -357,7 +357,10 @@ installmsg:
357357
@echo '***************************************************'
358358
@echo ''
359359

360-
minstall: bin/mhs bin/cpphs bin/mcabal machdep
360+
minstall: bin/install
361+
bin/install -i$(MCABAL) GMPFLAGS=$(MHSGMPCCFLAGS) GMPLIBS=$(MHSGMPCCLIBS)
362+
363+
oldminstall: bin/mhs bin/cpphs bin/mcabal machdep
361364
@mkdir -p $(MCABALBIN)
362365
@mkdir -p $(MRUNTIME)
363366
cp bin/mhs bin/cpphs bin/mcabal $(MCABALBIN)
@@ -381,9 +384,6 @@ slowinstall: bin/cpphs bin/mcabal bin/mhs machdep
381384
cd lib; PATH=$(MCABALBIN):"$$PATH" mcabal $(MCABALGMP) install
382385
@echo $$PATH | tr ':' '\012' | grep -q $(MCABALBIN) || echo '***' Add $(MCABALBIN) to the PATH
383386

384-
newinstall: bin/install
385-
bin/install -i$(MCABAL) GMPFLAGS=$(MHSGMPCCFLAGS) GMPLIBS=$(MHSGMPCCLIBS)
386-
387387
#####
388388
# Hugs
389389
HUGS= runhugs

Makefile.windows

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,40 @@
22
# Use with nmake
33
#
44
HOME=$(USERPROFILE)
5-
RTS=src/runtime
65
CCEVAL=cl -nologo -F"obuild\\" -O2 -I$(RTS) -I$(RTS)/windows $(RTS)/main.c $(RTS)/eval.c
76
MKDIR=md
8-
9-
VERSION=0.15.7.0
10-
HVERSION=0,15,7,0
11-
MCABAL=$(HOME)/.mcabal
12-
MCABALMHS=$(MCABAL)/mhs-$(VERSION)
13-
MDATA=$(MCABALMHS)/packages/mhs-$(VERSION)/data
14-
MRUNTIME=$(MDATA)/$(RTS)
15-
MCABALBIN=$(MCABAL)/bin
16-
BASE=base-$(VERSION)
7+
RTS=src/runtime
8+
RTSFILES=$(RTS)/*.c $(RTS)/*.h $(RTS)/windows/*
179

1810
all: bin/mhs.exe bin/mhseval.exe
1911

2012
# Compile mhs from distribution, with C compiler
21-
bin/mhs.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/mhs.c
13+
bin/mhs.exe: $(RTSFILES) generated/mhs.c
2214
@-$(MKDIR) bin
2315
@-$(MKDIR) build
2416
$(CCEVAL) generated/mhs.c -Fe"bin\\mhs.exe"
2517

26-
bin/cpphs.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/cpphs.c
18+
bin/cpphs.exe: $(RTSFILES) generated/cpphs.c
2719
@-$(MKDIR) bin
2820
@-$(MKDIR) build
2921
$(CCEVAL) generated/cpphs.c $(CCLIBS) -Fe"bin\\cpphs.exe"
3022

31-
bin/install.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/install.c
23+
bin/install.exe: $(RTSFILES) generated/install.c
3224
@-$(MKDIR) bin
3325
@-$(MKDIR) build
3426
$(CCEVAL) generated/install.c $(CCLIBS) -Fe"bin\\install.exe"
3527

36-
bin/mcabal.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/mcabal.c
28+
bin/mcabal.exe: $(RTSFILES) generated/mcabal.c
3729
@-$(MKDIR) bin
3830
@-$(MKDIR) build
3931
$(CCEVAL) generated/mcabal.c $(CCLIBS) -Fe"bin\\mcabal.exe"
4032

4133
# Compile combinator evaluator
42-
bin/mhseval.exe: $(RTS)/*.c $(RTS)/windows/* $(RTS)/comb.c
34+
bin/mhseval.exe: $(RTSFILES) $(RTS)/comb.c
4335
@-$(MKDIR) bin
4436
@-$(MKDIR) build
4537
cl -nologo -F"obuild\\" -O2 -I$(RTS) -I$(RTS)/windows $(RTS)/main.c $(RTS)/eval.c $(RTS)/comb.c -Fe"bin\\mhseval.exe"
38+
4639
mhs.conf: mhs.conf.in
4740
sed -e "s,GMPFLAGS,$(MHSGMPCCFLAGS)," -e "s,GMPLIBS,$(MHSGMPCCLIBS)," mhs.conf.in > mhs.conf
4841

MicroHs.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.0
22
name: MicroHs
3-
version: 0.15.10.0
3+
version: 0.15.11.0
44
-- *** When changing the version number, also
55
-- *** run 'sh updateversion.sh'
66
-- *** Yeah, it stinks.

generated/base.pkg

313 Bytes
Binary file not shown.

generated/cpphs.c

Lines changed: 718 additions & 717 deletions
Large diffs are not rendered by default.

generated/mcabal.c

Lines changed: 1745 additions & 1745 deletions
Large diffs are not rendered by default.

generated/mhs.c

Lines changed: 573 additions & 572 deletions
Large diffs are not rendered by default.

generated/mhseval.js

307 Bytes
Binary file not shown.

lib/System/Info.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ uname flag = unsafePerformIO $ do
2626
return $ map toLower $ filter (not . isSpace) res
2727

2828
fullCompilerVersion :: Version
29-
fullCompilerVersion = makeVersion [0,15,10,0]
29+
fullCompilerVersion = makeVersion [0,15,11,0]

lib/base.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.0
22
name: base
3-
version: 0.15.10.0
3+
version: 0.15.11.0
44
license: Apache-2.0
55
license-file: LICENSE
66
maintainer: lennart@augustsson.net

0 commit comments

Comments
 (0)