diff options
| author | Christophe Troestler <Christophe.Troestler@umons.ac.be> | 2015-11-27 22:30:41 +0100 |
|---|---|---|
| committer | Damien Doligez <damien.doligez@inria.fr> | 2016-02-10 14:46:39 +0100 |
| commit | 7f6a8ae2f004ca7adeb62c8e703d436496699bd8 (patch) | |
| tree | 6f4d6e9fd7e1f5ac4f3e25d8ad14ea6c5fb69410 /stdlib/Makefile | |
| parent | 59aab8d1c278946ceb4db9ecabb78b0d0da214ad (diff) | |
| download | ocaml-7f6a8ae2f004ca7adeb62c8e703d436496699bd8.tar.gz | |
Protect install paths against spaces (on Windows)
Diffstat (limited to 'stdlib/Makefile')
| -rw-r--r-- | stdlib/Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile index 2cd5dc05dd..c809d3528e 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -25,22 +25,23 @@ allopt-prof: stdlib.p.cmxa std_exit.p.cmx installopt: installopt-default installopt-$(PROFILING) installopt-default: - cp stdlib.cmxa stdlib.a std_exit.o *.cmx $(INSTALL_LIBDIR) - cd $(INSTALL_LIBDIR); $(RANLIB) stdlib.a + cp stdlib.cmxa stdlib.a std_exit.o *.cmx "$(INSTALL_LIBDIR)" + cd "$(INSTALL_LIBDIR)"; $(RANLIB) stdlib.a installopt-noprof: - rm -f $(INSTALL_LIBDIR)/stdlib.p.cmxa; \ - ln -s stdlib.cmxa $(INSTALL_LIBDIR)/stdlib.p.cmxa - rm -f $(INSTALL_LIBDIR)/stdlib.p.a; \ - ln -s stdlib.a $(INSTALL_LIBDIR)/stdlib.p.a - rm -f $(INSTALL_LIBDIR)/std_exit.p.cmx; \ - ln -s std_exit.cmx $(INSTALL_LIBDIR)/std_exit.p.cmx - rm -f $(INSTALL_LIBDIR)/std_exit.p.o; \ - ln -s std_exit.o $(INSTALL_LIBDIR)/std_exit.p.o + rm -f "$(INSTALL_LIBDIR)/stdlib.p.cmxa"; \ + ln -s stdlib.cmxa "$(INSTALL_LIBDIR)/stdlib.p.cmxa" + rm -f "$(INSTALL_LIBDIR)/stdlib.p.a"; \ + ln -s stdlib.a "$(INSTALL_LIBDIR)/stdlib.p.a" + rm -f "$(INSTALL_LIBDIR)/std_exit.p.cmx"; \ + ln -s std_exit.cmx "$(INSTALL_LIBDIR)/std_exit.p.cmx" + rm -f "$(INSTALL_LIBDIR)/std_exit.p.o"; \ + ln -s std_exit.o "$(INSTALL_LIBDIR)/std_exit.p.o" installopt-prof: - cp stdlib.p.cmxa stdlib.p.a std_exit.p.cmx std_exit.p.o $(INSTALL_LIBDIR) - cd $(INSTALL_LIBDIR); $(RANLIB) stdlib.p.a + cp stdlib.p.cmxa stdlib.p.a std_exit.p.cmx std_exit.p.o \ + "$(INSTALL_LIBDIR)" + cd "$(INSTALL_LIBDIR)"; $(RANLIB) stdlib.p.a stdlib.p.cmxa: $(OBJS:.cmo=.p.cmx) $(CAMLOPT) -a -o stdlib.p.cmxa $(OBJS:.cmo=.p.cmx) |
