llvm.org GIT mirror llvm / 6f274a5
Minor fixes in Makefiles for the OCaml bindings: 1. Interface files (.mli) are installed before compiled interface files (.cmi) to preserve timestamp relation. 2. install-meta should use $(OcamlDir) instead of $(ObjDir). 3. Declared some targets as .PHONY. Patch by Christophe Raffalli. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144183 91177308-0d34-0410-b5e6-96231b3b80d8 Wojciech Matyjewicz 7 years ago
2 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
237237 # Also install the .mli's (headers) as documentation.
238238 install-cmis: $(OutputsCMI) $(OcamlHeaders)
239239 $(Verb) $(MKDIR) $(PROJ_libocamldir)
240 $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
241 $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
242 $(DataInstall) $(ObjDir)/$$i "$(PROJ_libocamldir)/$$i"; \
243 done
240244 $(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
241245 $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
242246 $(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
243 done
244 $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
245 $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
246 $(DataInstall) $(ObjDir)/$$i "$(PROJ_libocamldir)/$$i"; \
247247 done
248248
249249 uninstall-cmis::
2929 $(OcamlDir)/META.llvm: META.llvm
3030 $(Verb) $(CP) -f $< $@
3131
32 install-meta:: $(ObjDir)/META.llvm
32 install-meta:: $(OcamlDir)/META.llvm
3333 $(Echo) "Install $(BuildMode) $(DestMETA)"
3434 $(Verb) $(MKDIR) $(PROJ_libocamldir)
35 $(Verb) $(DataInstall) META.llvm "$(DestMETA)"
35 $(Verb) $(DataInstall) $< "$(DestMETA)"
3636
3737 uninstall-meta::
3838 $(Echo) "Uninstalling $(DestMETA)"
3939 -$(Verb) $(RM) -f "$(DestMETA)"
40
41 .PHONY: copy-meta install-meta uninstall-meta