diff options
author | W. Trevor King <wking@tremily.us> | 2013-06-06 18:05:12 -0400 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2015-02-26 11:37:27 -0800 |
commit | e030d4cbe0fb57bde02a7c41b67ce9ef7f613740 (patch) | |
tree | 088e69bc614fb53636d44c5fbd440cdd0f527a25 /Makefile | |
parent | fix '-' in stage names for python imports (diff) | |
download | catalyst-e030d4cbe0fb57bde02a7c41b67ce9ef7f613740.tar.gz catalyst-e030d4cbe0fb57bde02a7c41b67ce9ef7f613740.tar.bz2 catalyst-e030d4cbe0fb57bde02a7c41b67ce9ef7f613740.zip |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 "$<" |