From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 548C8BBAF for ; Fri, 21 May 2010 10:42:03 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqtVAPrj9UvDJdGqgWdsb2JhbACYOwMBhWEVAQEWIiK9DoUSBA X-IronPort-AV: E=Sophos;i="4.53,277,1272837600"; d="scan'208";a="63205811" Received: from mx2.mpim-bonn.mpg.de ([195.37.209.170]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 21 May 2010 10:42:02 +0200 X-IronPort-AV: E=McAfee;i="5400,1158,5988"; a="635889" X-IronPort-AV: E=Sophos;i="4.53,277,1272837600"; d="scan'208";a="635889" Received: from mailout.mpim-bonn.mpg.de (HELO ismene.mpim-bonn.mpg.de) ([192.168.42.38]) by mx2.mpim-bonn.mpg.de with ESMTP; 21 May 2010 10:42:01 +0200 Received: from [192.68.254.6] (athene.mpim-bonn.mpg.de [192.68.254.6]) by ismene.mpim-bonn.mpg.de (8.13.8/8.13.8) with ESMTP id o4L8fuPF029208; Fri, 21 May 2010 10:41:57 +0200 (CEST) Message-ID: <4BF64758.40704@laposte.net> Date: Fri, 21 May 2010 10:42:00 +0200 From: =?ISO-8859-1?Q?Micha=EBl_Gr=FCnewald?= User-Agent: Mozilla/5.0 (X11; U; SunOS sun4v; en-US; rv:1.7.12) Gecko/20050928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Allsopp Cc: "'OCaml users'" Subject: Re: [Caml-list] A Tutorial on GNU Make with OCaml References: <4BF603AA.4030703@msu.edu> <4BF6179C.6050102@laposte.net> <012101caf8be$085df350$1919d9f0$@romulus.metastack.com> In-Reply-To: <012101caf8be$085df350$1919d9f0$@romulus.metastack.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; ocaml:01 toolchain:01 makefile:01 ocaml:01 gmake:01 gmake:01 makefiles:01 makefile:01 makefiles:01 mor:98 workstation:98 wrote:01 wrote:01 unix:01 caml-list:01 Hi David, David Allsopp wrote: >Michael Grünewald wrote: > > >>My personal taste goes rather to BSD Make (make in FreeBSD, bsdmake in OS- >>X and bmake in some other places): I found it much mor eeasy to program, >>and the FreeBSD build toolchain and ports collection provide a significant >>amount of Makefile techniques one can draws its inspiration from. I wrote >>my own macros for my OCaml projects. >> >> > >So essentially you dislike make in general (bmake and gmake aren't *that* >different - though that said on BSD I always use gmake) - simply that on BSD >there are a large number of pre-written Makefiles and Makefile fragments >which allow you to produce your Makefiles more quickly. > > Oh no, not at all, I really love make and the central role it plays in my use of a UNIX workstation. Since I have to work on Mac OS-X, Linux and Solaris, while I have FreeBSD at home, I had to pay special attention to the portability of the macros and reimplemented many mechanisms presented in the `standard' BSD Makefiles. I use them all the time, and they usually work like a charm! The most polished sets are for the production of TeX/LaTeX documents (with METAPOST and BIBTeX support) and the production of a web page (with sgmlnorm and tidy). The OCaml macros work but some parts really need to be rewritten. You are quite right that bmake and gmake are not that different. When I switched from GNU Make to BMake, I found it easy and straightforward to program and appreciate the lot of meaningful examples I could study to learn the proper use of the program. It does not need to mean that such examples do not exist for gmake, just that I did not found them in times of need. Best Regards, Michael