From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id C3D6F7F8A0 for ; Sun, 6 Apr 2014 12:00:19 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of adrien@notk.org) identity=pra; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of adrien@notk.org designates 91.121.71.147 as permitted sender) identity=mailfrom; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@nautica.notk.org) identity=helo; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="postmaster@nautica.notk.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAEIkQVNbeUeT/2dsb2JhbABYgwaDSlLCHBZ0gk+BCwIFEw4CEQUYMYgQm3CPHKF7F4EpkD41gRQEmFoBkj+DMjs X-IPAS-Result: Ah4FAEIkQVNbeUeT/2dsb2JhbABYgwaDSlLCHBZ0gk+BCwIFEw4CEQUYMYgQm3CPHKF7F4EpkD41gRQEmFoBkj+DMjs X-IronPort-AV: E=Sophos;i="4.97,802,1389740400"; d="scan'208";a="55809244" Received: from nautica.notk.org ([91.121.71.147]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 06 Apr 2014 12:00:19 +0200 Received: by nautica.notk.org (Postfix, from userid 1003) id E47C8C009; Sun, 6 Apr 2014 12:00:15 +0200 (CEST) Date: Sun, 6 Apr 2014 12:00:15 +0200 From: Adrien Nader To: Ocaml Mailing List Message-ID: <20140406100015.GA14447@notk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: [Caml-list] State of .depend.nt files in the compiler Hi, I've started changing the compiler to get rid of the Makefile.nt files. So far I'm still doing it in otherlibs/ and I'm a bit surprised by the .depend.nt files. As far as I can tell they are only needed by the MSVC port since they are basically "sed 's/\.o/.$(O)/g'" and only the MSVC port has $(O) set to something which isn't '.o' (it's '.obj'). There are also only two such files: in asmrun/ and in otherlibs/num/. In otherlibs/systhreads/, there is no .depend.nt, only .depend and it's being included by Makefile.nt. Currently, for some of the otherlibraries, .c files will not be rebuilt when the .h files they depend on are changed. My questions: - are the .depend.nt files actually used? - are they to be commited in the source tree or should they be created at build-time through a "make depend.nt" call which only the MSVC require? (if the only thing to run is a few sed calls, that new step would be fast and safe) - for directories where they don't currently exist, should they be added next to every ".depend" file? And a bonus question: - why is the "depend" rule in otherlibs/str/Makefile.nt implemented as a do-nothing step? -- Adrien Nader