1 #**************************************************************************
2 #* *
3 #* OCaml *
4 #* *
5 #* Mark Shinwell, Jane Street Europe *
6 #* *
7 #* Copyright 1999 Institut National de Recherche en Informatique et *
8 #* en Automatique. *
9 #* Copyright 2018--2019 Jane Street Group LLC *
10 #* *
11 #* All rights reserved. This file is distributed under the terms of *
12 #* the GNU Lesser General Public License version 2.1, with the *
13 #* special exception on linking described in the file LICENSE. *
14 #* *
15 #**************************************************************************
16
17 $(LOCAL_SRC)/.depend: $(COMPILERLIBS_COPIED_SOURCES) \
18 $(COMPILERLIBS_COPIED_SOURCES_INTFS) $(LOCAL_SRC)/Makefile
19 $(CAMLRUN) $(ROOTDIR)/ocamlc -depend -slash -I $(LOCAL_SRC) \
20 $(COMPILERLIBS_COPIED_SOURCES) \
21 $(COMPILERLIBS_COPIED_SOURCES_INTFS) \
22 > $(LOCAL_SRC)/.depend
23
24 -include $(LOCAL_SRC)/.depend
25
26 $(LOCAL_SRC)/%.ml:
27 cp $< $@
28
29 $(LOCAL_SRC)/%.mli:
30 cp $< $@
31