12345678910111213141516171819202122232425262728293031323334353637(**************************************************************************)(* *)(* Copyright 2020 OCamlPro & Origin Labs *)(* *)(* 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. *)(* *)(**************************************************************************)openEzcmd.V2openEZCMD.TYPESletcmd_name="clean"letaction~distclean=let_p,_=Project.get()inPrintf.eprintf"Removing _build...\n%!";ignore(Sys.command"rm -rf _build");Misc.after_hook"clean";if!distcleanthen(ignore(Sys.command"rm -rf _drom");ignore(Sys.command"rm -rf _opam");Misc.after_hook"distclean";)letcmd=letdistclean=reffalseinEZCMD.subcmd_name(fun()->action~distclean)~args:[(["distclean"],Arg.Setdistclean,EZCMD.info"Also remove _opam/ (local switch) and _drom/")]~doc:"Clean the project from build files"