# HG changeset patch # User Mike Miller # Date 1393026633 18000 # Node ID ed670b8128e068ff4e633a9b61d9f38866ae0c02 # Parent 39fbe4aba56017ee78f4cfe67c2cf434de7ab002 build: Handle templated source file in libgui properly * libgui/graphics/module.mk (TEMPLATE_SRC): New variable, add ToolBarButton.cc. (noinst_HEADERS): Include $(TEMPLATE_SRC) in the list of headers. (graphics_libgui_graphics_la_SOURCES): Remove ToolBarButton.cc. diff -r 39fbe4aba560 -r ed670b8128e0 libgui/graphics/module.mk --- a/libgui/graphics/module.mk Fri Feb 21 18:19:44 2014 -0500 +++ b/libgui/graphics/module.mk Fri Feb 21 18:50:33 2014 -0500 @@ -65,7 +65,8 @@ graphics/ToggleTool.h \ graphics/ToolBar.h \ graphics/ToolBarButton.h \ - graphics/gl-select.h + graphics/gl-select.h \ + $(TEMPLATE_SRC) graphics_libgui_graphics_la_SOURCES = \ graphics/__init_qt__.cc \ @@ -100,9 +101,11 @@ graphics/ToggleButtonControl.cc \ graphics/ToggleTool.cc \ graphics/ToolBar.cc \ - graphics/ToolBarButton.cc \ graphics/gl-select.cc +TEMPLATE_SRC = \ + graphics/ToolBarButton.cc + nodist_graphics_libgui_graphics_la_SOURCES = $(octave_gui_graphics_MOC) $(octave_gui_graphics_RC) graphics_libgui_graphics_la_CPPFLAGS = \