Make protocol C files depend on protocol XML files
authorKeith Packard <keithp@keithp.com>
Fri, 12 Jul 2013 17:32:03 +0000 (10:32 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Nov 2013 22:01:31 +0000 (14:01 -0800)
When new XML files get installed, make sure the C files are regenerated

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-By: Uli Schlachter <psychon@znc.in>
src/Makefile.am

index 6b5a2c3..f48e14e 100644 (file)
@@ -233,7 +233,7 @@ EXTRA_DIST = $(STATIC_MANS)
 BUILT_SOURCES = $(EXTSOURCES) $(BUILT_MANS)
 CLEANFILES = $(EXTSOURCES) $(EXTHEADERS) $(BUILT_MANS)
 
-$(EXTSOURCES): c_client.py
+$(EXTSOURCES): c_client.py $(XCBPROTO_XCBINCLUDEDIR)/$(@:.c=.xml)
        $(PYTHON) $(srcdir)/c_client.py -p $(XCBPROTO_XCBPYTHONDIR) $(XCBPROTO_XCBINCLUDEDIR)/$(@:.c=.xml)
 
 $(man_MANS): $(EXTSOURCES)