From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 25533138ADC for ; Thu, 26 Feb 2015 22:18:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9AD82E0990; Thu, 26 Feb 2015 22:18:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42D9FE0983 for ; Thu, 26 Feb 2015 22:18:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C97023409C9 for ; Thu, 26 Feb 2015 22:18:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 287FA129E3 for ; Thu, 26 Feb 2015 22:18:38 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1424979447.e030d4cbe0fb57bde02a7c41b67ce9ef7f613740.dolsen@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: / X-VCS-Repository: proj/catalyst X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: e030d4cbe0fb57bde02a7c41b67ce9ef7f613740 X-VCS-Branch: master Date: Thu, 26 Feb 2015 22:18:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 117e0ccf-c6bd-44d9-a003-7c7a181a2774 X-Archives-Hash: 73c80e49c29bb4821153d0da828a86be Message-ID: <20150226221838.tLsb5k4YboWN9iZ9Do-9QQ7qJgE4UG97iFhgYwrKNIg@z> commit: e030d4cbe0fb57bde02a7c41b67ce9ef7f613740 Author: W. Trevor King tremily us> AuthorDate: Thu Jun 6 22:05:12 2013 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Thu Feb 26 19:37:27 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=e030d4cb Makefiles: create files directory before populating it The syntax for the rules is: targets ...: target-pattern: prereq-patterns | order-only-prerequisites For details, see: http://www.gnu.org/software/make/manual/html_node/Static-Usage.html http://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d2f17f7..57739d5 100644 --- a/Makefile +++ b/Makefile @@ -16,13 +16,16 @@ distdir = catalyst-$(PACKAGE_VERSION) all: $(EXTRA_DIST) -$(MAN_PAGES): files/%: doc/%.txt doc/asciidoc.conf Makefile catalyst +files: + mkdir files + +$(MAN_PAGES): files/%: doc/%.txt doc/asciidoc.conf Makefile catalyst | files a2x --conf-file=doc/asciidoc.conf --attribute="catalystversion=$(PACKAGE_VERSION)" \ --format=manpage -D files "$<" # Additional dependencies due to inclusion -files/catalyst.1: doc/subarches.generated.txt -files/catalyst-spec.5: doc/subarches.generated.txt doc/targets.generated.txt +files/catalyst.1: doc/subarches.generated.txt | files +files/catalyst-spec.5: doc/subarches.generated.txt doc/targets.generated.txt | files doc/subarches.generated.txt: $(wildcard catalyst/arch/*.py) doc/make_subarch_table_guidexml.py ./doc/make_subarch_table_guidexml.py @@ -30,7 +33,7 @@ doc/subarches.generated.txt: $(wildcard catalyst/arch/*.py) doc/make_subarch_tab doc/targets.generated.txt: doc/make_target_table.py $(wildcard catalyst/targets/*.py) "./$<" > "$@" -$(DOCS): files/%.html: doc/%.txt doc/asciidoc.conf Makefile +$(DOCS): files/%.html: doc/%.txt doc/asciidoc.conf Makefile | files a2x --conf-file=doc/asciidoc.conf --attribute="catalystversion=$(PACKAGE_VERSION)" \ --format=xhtml -D files "$<"