summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2011-02-18 09:03:28 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2011-02-24 11:50:22 +0100
commit5bf45f233ebb4dcee96af112be3589afdf3fc8a9 (patch)
tree187c00058a4d62d7e12e311879e4cbe401270b95
parent47b3cebd9ef1027929f9e0ba6366d9dc1ddcdd84 (diff)
downloadfedora-packager-manpage-target-dep-fix.zip
fedora-packager-manpage-target-dep-fix.tar.gz
fedora-packager-manpage-target-dep-fix.tar.xz
Fix fedpkg.1 target dependenciesmanpage-target-dep-fix
Make sure that the fedpkg.1 man page file is rebuilt when any of the files it may pull information from have been changed. This will even cause the `fedpkg.1` rebuild (and later 'make install' the rebuilt man page) in case of an old and outdated fedpkg.1 lying around in $(srcdir) when doing an out of source tree build (e.g. $(top_srcdir) != $(top_builddir)).
-rw-r--r--Makefile.am10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index fc2dcbf..2b2ee62 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -79,10 +79,14 @@ ppc-koji: $(srcdir)/src/secondary-koji
rm -f ppc-koji
install -p -m 755 -T $(srcdir)/src/secondary-koji ppc-koji
+noinst_PYTHON = $(srcdir)/src/fedpkg_man_page.py
+pyfedpkg_PYTHON = $(wildcard $(srcdir)/src/pyfedpkg/*.py)
+fedora_cert_PYTHON = $(wildcard $(srcdir)/src/fedora_cert/*.py)
+
if HAVE_PYTHON
CLEANFILES += fedpkg.1
man1_MANS = fedpkg.1
-fedpkg.1: fedpkg
+fedpkg.1: $(srcdir)/src/fedpkg.py $(srcdir)/src/fedpkg_man_page.py $(pyfedpkg_PYTHON)
tmpfile="fedpkg.1.$$$$"; \
if $(PYTHON) $(srcdir)/src/fedpkg_man_page.py > "$$tmpfile"; then \
mv -f "$$tmpfile" "$@"; \
@@ -94,10 +98,6 @@ fedpkg.1: fedpkg
fi
endif
-noinst_PYTHON = $(srcdir)/src/fedpkg_man_page.py
-pyfedpkg_PYTHON = $(wildcard $(srcdir)/src/pyfedpkg/*.py)
-fedora_cert_PYTHON = $(wildcard $(srcdir)/src/fedora_cert/*.py)
-
fedora_certdir = $(pythondir)/fedora_cert
pyfedpkgdir = $(pythondir)/pyfedpkg