Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01D9ADEC6 for ; Mon, 20 May 2013 16:37:55 +0000 (UTC) Received: (qmail 38180 invoked by uid 500); 20 May 2013 16:32:03 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 19657 invoked by uid 500); 20 May 2013 16:28:03 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 12756 invoked by uid 99); 20 May 2013 15:39:14 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2013 15:39:14 +0000 Received: from localhost (HELO mail-ie0-f181.google.com) (127.0.0.1) (smtp-auth username nslater, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2013 15:39:12 +0000 Received: by mail-ie0-f181.google.com with SMTP id x12so14190356ief.12 for ; Mon, 20 May 2013 08:39:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=wNEgHrqU9jGlxpVhrJeaU5/vJqoK3b+XDrYvI6uIRHg=; b=RAkFZ+HgPggTQ0Fk0GVjq0wgO1r3rDHitME1SDLDCzI3MFz41LOGxqchffVKTCVrZl 7QS3fEKsCZRb1HtUdvgJzz3AgTqk6/HIbZwltOszd5w321GqwGpGL3oO69HoqTqc5dTC 8PxSlDJlqy/sFHGMItEMItdQz0SveYyFRxTPpd1NOUmK53Xn834Jz/88yhXN2Ohr5P5I mZ9YUpvldQiXKkNQjNacdTeV+dBxpusSD3e9+Iow5purn2h7+zW8XgRJ2dUcnWlKoDsb HPtKie0JWHSuwq19ICBP+S877YGcbJEbedNaP9IcmfnjUp+374G4nTnnuI7c+0XiC9C+ n7dg== MIME-Version: 1.0 X-Received: by 10.50.18.80 with SMTP id u16mr5506095igd.13.1369064352585; Mon, 20 May 2013 08:39:12 -0700 (PDT) Received: by 10.50.233.4 with HTTP; Mon, 20 May 2013 08:39:12 -0700 (PDT) X-Originating-IP: [79.97.124.139] In-Reply-To: References: Date: Mon, 20 May 2013 16:39:12 +0100 Message-ID: Subject: Re: Getting rid of file lists in documentation Makefiles From: Noah Slater To: Dirkjan Ochtman Cc: "dev@couchdb.apache.org" , Noah Slater Content-Type: multipart/alternative; boundary=089e01493cba69317604dd28228d X-Gm-Message-State: ALoCoQkQ5ZyPXjUhHdajp/1jbFW41TXPoi+i5fFhQHndCnUg1+sqTS0bSm7gUZ+dEqAU8qtOpPVq --089e01493cba69317604dd28228d Content-Type: text/plain; charset=ISO-8859-1 I'm torn on this issue. See: http://www.gnu.org/software/automake/manual/automake.html#Wildcards (Please read that whole section.) Summary is: * Wildcards make it easy to distribute the wrong files (either too many, or too few) * Wildcards are not portable Please also consider that with Benoit's rcouch merge, we're moving away from Autotools entirely (I believe), so we will have the chance to throw off / simplify a lot of this stuff. What are your thoughts having read that section? On 20 May 2013 13:58, Dirkjan Ochtman wrote: > Hi there, > > Keeping Makefile.am in sync with the actual documentation is a PITA, > and doesn't add any value. In fact, I broke the build over the weekend > by not removing some files from the Makefiles. Instead, we can use > invocations of find to find the relevant files in these cases: > > html_files := $(shell find ./html/ -type f -not -wholename "*doctree*" > -not -name ".buildinfo") > image_files := $(shell find ../images/ -type f) > src_files := $(shell find ../src/ -name "*.rst" -or -name "conf.py") > src_files_html := $(shell find ../static/ ../templates/ -type f) > > (This would replace the respective lists of files in > share/doc/build/Makefile.am.) > > Anyone opposed to that? > > Cheers, > > Dirkjan > -- NS --089e01493cba69317604dd28228d--