summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-09-03 12:21:02 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2015-09-03 12:21:02 +0100
commit90ee95d5870e854d01290d28b9568388b25e114a (patch)
tree036829e334e08d7f91b630ed4021c0e47fdb230a /build
parent6f29e6f406d36929c06abc8be83fda6ff8e97490 (diff)
downloadcogl-90ee95d5870e854d01290d28b9568388b25e114a.tar.gz
build: Update enum generation rules
Need to be aware of $srcdir, to allow for builddir != srcdir.
Diffstat (limited to 'build')
-rw-r--r--build/autotools/Makefile.am.enums9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/autotools/Makefile.am.enums b/build/autotools/Makefile.am.enums
index d3dc742b..2fd69d5b 100644
--- a/build/autotools/Makefile.am.enums
+++ b/build/autotools/Makefile.am.enums
@@ -26,16 +26,17 @@ $(if $(glib_enum_headers),,$(error Need to define glib_enum_headers))
enum_tmpl_h=$(addprefix $(srcdir)/, $(glib_enum_h:.h=.h.in))
enum_tmpl_c=$(addprefix $(srcdir)/, $(glib_enum_c:.c=.c.in))
+enum_headers=$(addprefix $(srcdir)/, $(glib_enum_headers))
CLEANFILES += stamp-enum-types
DISTCLEANFILES += $(glib_enum_h) $(glib_enum_c)
BUILT_SOURCES += $(glib_enum_h) $(glib_enum_c)
EXTRA_DIST += $(enum_tmpl_h) $(enum_tmpl_c)
-stamp-enum-types: $(glib_enum_headers) $(enum_tmpl_h)
+stamp-enum-types: $(enum_headers) $(enum_tmpl_h)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--template $(enum_tmpl_h) \
- $(glib_enum_headers) > xgen-eh \
+ $(enum_headers) > xgen-eh \
&& (cmp -s xgen-eh $(glib_enum_h) || cp -f xgen-eh $(glib_enum_h)) \
&& rm -f xgen-eh \
&& echo timestamp > $(@F)
@@ -43,9 +44,9 @@ stamp-enum-types: $(glib_enum_headers) $(enum_tmpl_h)
$(glib_enum_h): stamp-enum-types
@true
-$(glib_enum_c): $(glib_enum_headers) $(glib_enum_h) $(enum_tmpl_c)
+$(glib_enum_c): $(enum_headers) $(enum_tmpl_h) $(enum_tmpl_c)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--template $(enum_tmpl_c) \
- $(glib_enum_headers) > xgen-ec \
+ $(enum_headers) > xgen-ec \
&& cp -f xgen-ec $(glib_enum_c) \
&& rm -f xgen-ec