2016-02-18 07:11:59 -08:00
|
|
|
#**************************************************************************
|
|
|
|
#* *
|
|
|
|
#* OCaml *
|
|
|
|
#* *
|
|
|
|
#* Xavier Leroy, projet Cristal, INRIA Rocquencourt *
|
|
|
|
#* *
|
|
|
|
#* Copyright 1999 Institut National de Recherche en Informatique et *
|
|
|
|
#* en Automatique. *
|
|
|
|
#* *
|
|
|
|
#* All rights reserved. This file is distributed under the terms of *
|
|
|
|
#* the GNU Lesser General Public License version 2.1, with the *
|
|
|
|
#* special exception on linking described in the file LICENSE. *
|
|
|
|
#* *
|
|
|
|
#**************************************************************************
|
1999-11-17 10:59:06 -08:00
|
|
|
|
2018-09-17 05:51:01 -07:00
|
|
|
ROOTDIR = ..
|
|
|
|
include $(ROOTDIR)/Makefile.config
|
1999-02-25 06:25:54 -08:00
|
|
|
|
2019-05-02 10:36:40 -07:00
|
|
|
DESTDIR ?=
|
2017-03-26 22:38:40 -07:00
|
|
|
INSTALL_DIR=$(DESTDIR)$(MANDIR)/man$(PROGRAMS_MAN_SECTION)
|
2002-04-24 02:09:35 -07:00
|
|
|
|
1999-02-25 06:25:54 -08:00
|
|
|
install:
|
2017-03-26 22:38:40 -07:00
|
|
|
for i in *.m; do cp \
|
|
|
|
$$i $(INSTALL_DIR)/`basename $$i .m`.$(PROGRAMS_MAN_SECTION); done
|
2017-05-23 06:11:25 -07:00
|
|
|
echo '.so man$(PROGRAMS_MAN_SECTION)/ocamlc.$(PROGRAMS_MAN_SECTION)' \
|
2017-03-26 22:38:40 -07:00
|
|
|
> $(INSTALL_DIR)/ocamlc.opt.$(PROGRAMS_MAN_SECTION)
|
2017-05-23 06:11:25 -07:00
|
|
|
echo '.so man$(PROGRAMS_MAN_SECTION)/ocamlopt.$(PROGRAMS_MAN_SECTION)' \
|
2017-03-26 22:38:40 -07:00
|
|
|
> $(INSTALL_DIR)/ocamlopt.opt.$(PROGRAMS_MAN_SECTION)
|
2017-05-23 06:11:25 -07:00
|
|
|
echo '.so man$(PROGRAMS_MAN_SECTION)/ocamlcp.$(PROGRAMS_MAN_SECTION)' \
|
2017-03-26 22:38:40 -07:00
|
|
|
> $(INSTALL_DIR)/ocamloptp.$(PROGRAMS_MAN_SECTION)
|