2015-07-16 15:37:47

by David Herrmann

[permalink] [raw]
Subject: [PATCH] kdbus: fix unused %docs make-targets

The top-level Makefile re-routes all %docs targets to the Documentation
makefiles. The DocBook makefile supports a lot more targets than the kdbus
makefile, and it seems unreasonable to expect that both will always be in
sync.

Therefore, add a fallback no-op target %docs: which is used for all
unspecified %docs targets.

We will, from time to time, add further %docs targets that make sense
(like installdocs). But there is definitely no time pressure on those.
However, we really should add this fallback now, as otherwise "make" will
print errors due to unknown targets.

Reported-by: Ulf Magnusson <[email protected]>
Tested-by: Jim Davis <[email protected]>
Signed-off-by: David Herrmann <[email protected]>
---
Documentation/kdbus/Makefile | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Documentation/kdbus/Makefile b/Documentation/kdbus/Makefile
index af87641..8caffe5 100644
--- a/Documentation/kdbus/Makefile
+++ b/Documentation/kdbus/Makefile
@@ -38,3 +38,7 @@ mandocs: $(MANFILES)
htmldocs: $(HTMLFILES)

clean-files := $(MANFILES) $(HTMLFILES)
+
+# we don't support other %docs targets right now
+%docs:
+ @true
--
2.4.6