Makefile: Improve dependencies
authorSebastian Pipping <sebastian@pipping.org>
Sat, 25 Jun 2011 15:36:53 +0000 (17:36 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 25 Jun 2011 15:36:53 +0000 (17:36 +0200)
Makefile

index bcc40c7c33ea9c3b0cbdcec63c89addd1100d46e..83fbd5afb8df1fa36b25546981a8a4fca97ce8b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,19 +2,19 @@
 # Licensed under GPL v2 or later
 
 PACKAGE_VERSION = `fgrep '__version__=' catalyst | sed 's|^__version__="\(.*\)"$$|\1|'`
-CLEAN_FILES = files/catalyst.1 doc/subarches.generated.txt
 EXTRA_DIST = files/catalyst.1
+CLEAN_FILES = $(EXTRA_DIST) doc/subarches.generated.txt
 
 distdir = catalyst-$(PACKAGE_VERSION)
 
 
-all: files/catalyst.1
+all: $(EXTRA_DIST)
 
 files/catalyst.1: doc/catalyst.1.txt doc/subarches.generated.txt doc/asciidoc.conf Makefile catalyst
        a2x --conf-file=doc/asciidoc.conf --attribute="catalystversion=$(PACKAGE_VERSION)" \
                 --format=manpage -D files "$<"
 
-doc/subarches.generated.txt:
+doc/subarches.generated.txt: $(wildcard arch/*.py)
        ./doc/make_subarch_table_guidexml.py
 
 clean: