Skip to content

Commit

Permalink
be friendly to non-gnu make
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3860 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
garrigue committed Oct 6, 2001
1 parent d6f7189 commit 8cbd53d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion otherlibs/bigarray/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ bigarray.cmxa: $(CAML_OBJS:.cmo=.cmx)
$(CAML_OBJS:.cmo=.cmx)

install:
test -f libbigarray.so && cp libbigarray.so $(LIBDIR)
if test -f libbigarray.so; then cp libbigarray.so $(LIBDIR); fi
cp bigarray.cmi bigarray.mli libbigarray.a bigarray.cma $(LIBDIR)
cd $(LIBDIR); $(RANLIB) libbigarray.a
cp bigarray.h $(LIBDIR)/caml/bigarray.h
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/dbm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ clean: partialclean
rm -f *.a *.o

install:
test -f libmldbm.so && cp libmldbm.so $(LIBDIR)/libmldbm.so
if test -f libmldbm.so; then cp libmldbm.so $(LIBDIR)/libmldbm.so; fi
cp libmldbm.a $(LIBDIR)/libmldbm.a
cd $(LIBDIR); $(RANLIB) libmldbm.a
cp dbm.cma dbm.cmi dbm.mli $(LIBDIR)
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/graph/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ clean: partialclean
rm -f *.a *.so *.o

install:
test -f libgraphics.so && cp libgraphics.so $(LIBDIR)/libgraphics.so
if test -f libgraphics.so; then cp libgraphics.so $(LIBDIR)/libgraphics.so; fi
cp libgraphics.a $(LIBDIR)/libgraphics.a
cd $(LIBDIR); $(RANLIB) libgraphics.a
cp graphics.cm[ia] graphicsX11.cmi graphics.mli graphicsX11.mli $(LIBDIR)
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/num/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(BIGNUM_OBJS):
$(CAMLOBJS:.cmo=.cmx): ../../ocamlopt

install:
test -f libnums.so && cp libnums.so $(LIBDIR)
if test -f libnums.so; then cp libnums.so $(LIBDIR); fi
cp libnums.a $(LIBDIR)/libnums.a
cd $(LIBDIR); $(RANLIB) libnums.a
cp nums.cma $(CMIFILES) $(CMIFILES:.cmi=.mli) $(LIBDIR)
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/str/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ clean: partialclean
cd $(REGEXLIB); if test -f Makefile; then $(MAKE) distclean; else exit 0; fi

install:
test -f libstr.so && cp libstr.so $(LIBDIR)/libstr.so
if test -f libstr.so; then cp libstr.so $(LIBDIR)/libstr.so; fi
cp libstr.a $(LIBDIR)/libstr.a
cd $(LIBDIR); $(RANLIB) libstr.a
cp str.cma str.cmi str.mli $(LIBDIR)
Expand Down
4 changes: 2 additions & 2 deletions otherlibs/systhreads/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ clean: partialclean
rm -f $(GENFILES)

install:
test -f libthreads.so && cp libthreads.so $(LIBDIR)/libthreads.so
if test -f libthreads.so; cp libthreads.so $(LIBDIR)/libthreads.so; fi
cp libthreads.a $(LIBDIR)/libthreads.a
cd $(LIBDIR); $(RANLIB) libthreads.a
if test -d $(LIBDIR)/threads; then :; else mkdir $(LIBDIR)/threads; fi
Expand All @@ -74,7 +74,7 @@ install:
cp thread.mli mutex.mli condition.mli event.mli threadUnix.mli $(LIBDIR)

installopt:
test -f libthreadsnat.so && cp libthreadsnat.so $(LIBDIR)/libthreadsnat.so
if test -f libthreadsnat.so; then cp libthreadsnat.so $(LIBDIR)/libthreadsnat.so; fi
cp libthreadsnat.a $(LIBDIR)/libthreadsnat.a
cd $(LIBDIR); $(RANLIB) libthreadsnat.a
cp $(THREAD_OBJS:.cmo=.cmx) threads.cmxa threads.a $(LIBDIR)/threads
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/threads/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ clean: partialclean
rm -f pervasives.mli marshal.mli unix.mli

install:
test -f libthreads.so && cp libthreads.so $(LIBDIR)/libthreads.so
if test -f libthreads.so; then cp libthreads.so $(LIBDIR)/libthreads.so; fi
cp libthreads.a $(LIBDIR)/libthreads.a
cd $(LIBDIR); $(RANLIB) libthreads.a
if test -d $(LIBDIR)/threads; then : ; else mkdir $(LIBDIR)/threads; fi
Expand Down
2 changes: 1 addition & 1 deletion otherlibs/unix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ clean: partialclean
rm -f *.a *.o *.so

install:
test -f libunix.so && cp libunix.so $(LIBDIR)/libunix.so
if test -f libunix.so; then cp libunix.so $(LIBDIR)/libunix.so; fi
cp libunix.a $(LIBDIR)/libunix.a
cd $(LIBDIR); $(RANLIB) libunix.a
cp unix.cma $(MLOBJS:.cmo=.cmi) $(MLOBJS:.cmo=.mli) $(LIBDIR)
Expand Down

0 comments on commit 8cbd53d

Please sign in to comment.