From 185c3be03cec26023acc11b49553753aa7330a1d Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 27 Feb 2013 20:16:38 -0500 Subject: build-sys: fix update-man-rules for vpath builds --- make-man-rules.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'make-man-rules.py') diff --git a/make-man-rules.py b/make-man-rules.py index 9c50c8dec2..5415984d88 100644 --- a/make-man-rules.py +++ b/make-man-rules.py @@ -21,6 +21,7 @@ from __future__ import print_function import xml.etree.ElementTree as tree import collections import sys +import os SECTION = '''\ MANPAGES += \\ @@ -40,7 +41,7 @@ endif HEADER = '''\ # Do not edit. Generated by make-man-rules.py. -# Regenerate with 'make update-man-list'. +# Regenerate with 'make all update-man-list'. ''' @@ -96,7 +97,8 @@ def make_makefile(rules, cleanfiles): if __name__ == '__main__': sources = set(sys.argv[1:]) + basenames = [os.path.basename(source) for source in sources] spares = set([source for source in sources - if source + '.in' in sources]) + if os.path.basename(source) + '.in' in basenames]) rules = create_rules(*(sources - spares)) print(make_makefile(rules, spares), end='') -- cgit v1.2.3-54-g00ecf