Makefile: Re-join man page generation
authorSebastian Pipping <sebastian@pipping.org>
Mon, 9 Jul 2012 16:09:50 +0000 (18:09 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 9 Jul 2012 16:11:25 +0000 (18:11 +0200)
Makefile

index 6a253958c4c21e8f3cb50f6a4d3aba14c803bb03..016120a78b562cfdb4f60d61d5952396d771218a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,13 +13,13 @@ distdir = catalyst-$(PACKAGE_VERSION)
 
 all: $(EXTRA_DIST)
 
-files/catalyst.1: doc/catalyst.1.txt doc/subarches.generated.txt doc/asciidoc.conf Makefile catalyst
+files/%: doc/%.txt doc/asciidoc.conf Makefile catalyst
        a2x --conf-file=doc/asciidoc.conf --attribute="catalystversion=$(PACKAGE_VERSION)" \
                 --format=manpage -D files "$<"
 
-files/catalyst-spec.5: doc/catalyst-spec.5.txt doc/subarches.generated.txt doc/targets.generated.txt doc/asciidoc.conf Makefile catalyst
-       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
 
 doc/subarches.generated.txt: $(wildcard arch/*.py) doc/make_subarch_table_guidexml.py
        ./doc/make_subarch_table_guidexml.py