aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am.enum
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am.enum')
-rw-r--r--Makefile.am.enum10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.am.enum b/Makefile.am.enum
index 208dee3..0f1a637 100644
--- a/Makefile.am.enum
+++ b/Makefile.am.enum
@@ -24,10 +24,11 @@ BUILT_SOURCES += $(glib_enum_h) $(glib_enum_c)
EXTRA_DIST += $(enum_tmpl_h) $(enum_tmpl_c)
stamp-enum-types: $(glib_enum_headers)
+ mkdir -p `dirname $(builddir)/$(glib_enum_h)`
$(QUIET_GEN)$(GLIB_MKENUMS) \
- --template $(enum_tmpl_h) \
+ --template $(srcdir)/$(enum_tmpl_h) \
$(glib_enum_headers) > xgen-eh \
- && (cmp -s xgen-eh $(glib_enum_h) || cp -f xgen-eh $(glib_enum_h)) \
+ && (cmp -s xgen-eh $(builddir)/$(glib_enum_h) || cp -f xgen-eh $(builddir)/$(glib_enum_h)) \
&& rm -f xgen-eh \
&& echo timestamp > $(@F)
@@ -35,9 +36,10 @@ $(glib_enum_h): stamp-enum-types
@true
$(glib_enum_c): $(glib_enum_h)
+ mkdir -p `dirname $(builddir)/$(glib_enum_c)`
$(QUIET_GEN)$(GLIB_MKENUMS) \
- --template $(enum_tmpl_c) \
+ --template $(srcdir)/$(enum_tmpl_c) \
$(glib_enum_headers) > xgen-ec \
- && cp -f xgen-ec $(glib_enum_c) \
+ && cp -f xgen-ec $(builddir)/$(glib_enum_c) \
&& rm -f xgen-ec