Skip to content

Commit b92a79f

Browse files
committed
More install fixes
1 parent d9af418 commit b92a79f

5 files changed

Lines changed: 1314 additions & 1299 deletions

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ bin/mcabal: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h #generated/mcabal.c
8181
$(CCEVAL) generated/mcabal.c $(CCLIBS) -o bin/mcabal
8282

8383
# Compile cpphs from distribution, with C compiler
84-
bin/install: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h #generated/install.c
84+
bin/install: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h generated/install.c
8585
@mkdir -p bin
8686
$(CCEVAL) generated/install.c $(CCLIBS) -o bin/install
8787

@@ -381,6 +381,9 @@ slowinstall: bin/cpphs bin/mcabal bin/mhs machdep
381381
cd lib; PATH=$(MCABALBIN):"$$PATH" mcabal $(MCABALGMP) install
382382
@echo $$PATH | tr ':' '\012' | grep -q $(MCABALBIN) || echo '***' Add $(MCABALBIN) to the PATH
383383

384+
newinstall: bin/install
385+
bin/install -i$(MCABAL) GMPFLAGS=$(MHSGMPCCFLAGS) GMPLIBS=$(MHSGMPCCLIBS)
386+
384387
#####
385388
# Hugs
386389
HUGS= runhugs

Makefile.windows

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
HOME=$(USERPROFILE)
55
RTS=src/runtime
66
CCEVAL=cl -nologo -F"obuild\\" -O2 -I$(RTS) -I$(RTS)/windows $(RTS)/main.c $(RTS)/eval.c
7+
MKDIR=md
78

89
VERSION=0.15.7.0
910
HVERSION=0,15,7,0
@@ -18,25 +19,30 @@ all: bin/mhs.exe bin/mhseval.exe
1819

1920
# Compile mhs from distribution, with C compiler
2021
bin/mhs.exe: $(RTS)/*.c $(RTS)/windows/* #generated/mhs.c
21-
@-mkdir bin
22-
@-mkdir build
22+
@-$(MKDIR) bin
23+
@-$(MKDIR) build
2324
$(CCEVAL) generated/mhs.c -Fe"bin\\mhs.exe"
2425

2526
bin/cpphs.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h generated/cpphs.c
26-
@-mkdir bin
27-
@-mkdir build
27+
@-$(MKDIR) bin
28+
@-$(MKDIR) build
2829
$(CCEVAL) generated/cpphs.c $(CCLIBS) -Fe"bin\\cpphs.exe"
2930

31+
bin/install.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h generated/install.c
32+
@-$(MKDIR) bin
33+
@-$(MKDIR) build
34+
$(CCEVAL) generated/install.c $(CCLIBS) -Fe"bin\\install.exe"
35+
3036
# Compile mcabal from distribution, with C compiler
3137
bin/mcabal.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h generated/mcabal.c
32-
@-mkdir bin
33-
@-mkdir build
38+
@-$(MKDIR) bin
39+
@-$(MKDIR) build
3440
$(CCEVAL) generated/mcabal.c $(CCLIBS) -Fe"bin\\mcabal.exe"
3541

3642
# Compile combinator evaluator
3743
bin/mhseval.exe: $(RTS)/*.c $(RTS)/windows/* $(RTS)/comb.c
38-
@-mkdir bin
39-
@-mkdir build
44+
@-$(MKDIR) bin
45+
@-$(MKDIR) build
4046
cl -nologo -F"obuild\\" -O2 -I$(RTS) -I$(RTS)/windows $(RTS)/main.c $(RTS)/eval.c $(RTS)/comb.c -Fe"bin\\mhseval.exe"
4147

4248
mhs.conf: mhs.conf.in
@@ -53,9 +59,12 @@ machdep:
5359
cl -nologo Tools/machdep.c -Femachdep.exe && ./machdep.exe > $(RTS)/MachDeps.h && rm machdep.exe
5460

5561
install: bin/mhs.exe bin/cpphs.exe bin/mcabal.exe machdep
56-
@mkdir $(MCABALBIN)
57-
@mkdir $(MRUNTIME)
62+
@$(MKDIR) $(MCABALBIN)
63+
@$(MKDIR) $(MRUNTIME)
5864
copy bin/mhs.exe bin/cpphs.exe bin/mcabal.exe $(MCABALBIN)
5965
copy mhs.conf $(MDATA)
6066
robocopy /e $(RTS)/* $(MRUNTIME)
6167
bin/mhs -Q generated/base.pkg $(MCABALMHS)
68+
69+
newinstall: bin/install.exe
70+
bin\install

0 commit comments

Comments
 (0)