From 35552aafc78405cf90d6895edfe51e5e859363da Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 18 Feb 2016 16:56:13 +0200 Subject: [PATCH] Makefile: handle also stable wayland-protocols Fix the protostability function to handle stable protocol files correctly. Stable protocol XML file names do not have 'stable' in their name, nor do we want to write that in the prerequisite lists in the Makefile. Function 'protoname' does not need fixing, because for stable protocol prerequisites, the sed pattern will not match, and it passes stem through as is, which is correct. Signed-off-by: Pekka Paalanen Reviewed-by: Bryce Harrington --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e365396..505d40a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1423,7 +1423,7 @@ doc: $(DOXYGEN_INDICES) .SECONDEXPANSION: define protostability -$(shell echo $1 | sed 's/.*\(\\|\\).*/\1/') +$(if $(findstring unstable,$1),unstable,stable) endef define protoname -- 2.7.4