caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Adrien Nader <adrien@notk.org>
To: Ocaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] State of .depend.nt files in the compiler
Date: Sun, 6 Apr 2014 12:00:15 +0200	[thread overview]
Message-ID: <20140406100015.GA14447@notk.org> (raw)

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

                 reply	other threads:[~2014-04-06 10:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140406100015.GA14447@notk.org \
    --to=adrien@notk.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).