Skip to content

Commit e389321

Browse files
Better Makefile.windows
1 parent 902682a commit e389321

1 file changed

Lines changed: 5 additions & 18 deletions

File tree

Makefile.windows

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,22 @@ BASE=base-$(VERSION)
1818
all: bin/mhs.exe bin/mhseval.exe
1919

2020
# Compile mhs from distribution, with C compiler
21-
bin/mhs.exe: $(RTS)/*.c $(RTS)/windows/* #generated/mhs.c
21+
bin/mhs.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/mhs.c
2222
@-$(MKDIR) bin
2323
@-$(MKDIR) build
2424
$(CCEVAL) generated/mhs.c -Fe"bin\\mhs.exe"
2525

26-
bin/cpphs.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h generated/cpphs.c
26+
bin/cpphs.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/cpphs.c
2727
@-$(MKDIR) bin
2828
@-$(MKDIR) build
2929
$(CCEVAL) generated/cpphs.c $(CCLIBS) -Fe"bin\\cpphs.exe"
3030

31-
bin/install.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h generated/install.c
31+
bin/install.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/install.c
3232
@-$(MKDIR) bin
3333
@-$(MKDIR) build
3434
$(CCEVAL) generated/install.c $(CCLIBS) -Fe"bin\\install.exe"
3535

36-
# Compile mcabal from distribution, with C compiler
37-
bin/mcabal.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/*/*.h generated/mcabal.c
36+
bin/mcabal.exe: $(RTS)/*.c $(RTS)/*.h $(RTS)/windows/* generated/mcabal.c
3837
@-$(MKDIR) bin
3938
@-$(MKDIR) build
4039
$(CCEVAL) generated/mcabal.c $(CCLIBS) -Fe"bin\\mcabal.exe"
@@ -44,7 +43,6 @@ bin/mhseval.exe: $(RTS)/*.c $(RTS)/windows/* $(RTS)/comb.c
4443
@-$(MKDIR) bin
4544
@-$(MKDIR) build
4645
cl -nologo -F"obuild\\" -O2 -I$(RTS) -I$(RTS)/windows $(RTS)/main.c $(RTS)/eval.c $(RTS)/comb.c -Fe"bin\\mhseval.exe"
47-
4846
mhs.conf: mhs.conf.in
4947
sed -e "s,GMPFLAGS,$(MHSGMPCCFLAGS)," -e "s,GMPLIBS,$(MHSGMPCCLIBS)," mhs.conf.in > mhs.conf
5048

@@ -55,16 +53,5 @@ exampletest: bin/mhs.exe bin/mhseval.exe Example.hs mhs.conf
5553
bin\mhs -r -itests Info
5654
bin\mhs Example -oEx.exe && Ex && rm Ex.exe
5755

58-
machdep:
59-
cl -nologo Tools/machdep.c -Femachdep.exe && ./machdep.exe > $(RTS)/MachDeps.h && rm machdep.exe
60-
61-
install: bin/mhs.exe bin/cpphs.exe bin/mcabal.exe machdep
62-
@$(MKDIR) $(MCABALBIN)
63-
@$(MKDIR) $(MRUNTIME)
64-
copy bin/mhs.exe bin/cpphs.exe bin/mcabal.exe $(MCABALBIN)
65-
copy mhs.conf $(MDATA)
66-
robocopy /e $(RTS)/* $(MRUNTIME)
67-
bin/mhs -Q generated/base.pkg $(MCABALMHS)
68-
69-
newinstall: bin/install.exe
56+
install: bin/install.exe
7057
bin\install

0 commit comments

Comments
 (0)