mirror of
https://github.com/brl/mutter.git
synced 2025-01-25 19:08:56 +00:00
35f11d863c
for the marshal files $(srcdir) was getting prefixed twice since my last commit (2cc88f1140) since it was already being prefixed including Makefile.am. The problem with prefixing it in the includer file though is that the Make variable substitutions like :.list=.h mean we end up generating into the $(srcdir). This removes the prefix added in clutter/Makefile.am We were also missing a $(srcdir) prefix when setting EXTRA_DIST
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# Rules for generating enumeration types using glib-mkenums
|
|
#
|
|
# Define:
|
|
# glib_enum_h = header template file
|
|
# glib_enum_c = source template file
|
|
# glib_enum_headers = list of headers to parse
|
|
#
|
|
# before including Makefile.am.enums. You will also need to have
|
|
# the following targets already defined:
|
|
#
|
|
# CLEANFILES
|
|
# DISTCLEANFILES
|
|
# BUILT_SOURCES
|
|
# EXTRA_DIST
|
|
#
|
|
# Author: Emmanuele Bassi <ebassi@linux.intel.com>
|
|
|
|
enum_tmpl_h=$(glib_enum_h:.h=.h.in)
|
|
enum_tmpl_c=$(glib_enum_c:.c=.c.in)
|
|
|
|
CLEANFILES += stamp-enum-types
|
|
DISTCLEANFILES += $(glib_enum_h) $(glib_enum_c)
|
|
BUILT_SOURCES += $(glib_enum_h) $(glib_enum_c)
|
|
EXTRA_DIST += $(srcdir)/$(enum_tmpl_h) $(srcdir)/$(enum_tmpl_c)
|
|
|
|
stamp-enum-types: $(glib_enum_headers)
|
|
$(QUIET_GEN)$(GLIB_MKENUMS) \
|
|
--template $(srcdir)/$(enum_tmpl_h) \
|
|
$(glib_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)
|
|
|
|
$(glib_enum_h): stamp-enum-types
|
|
@true
|
|
|
|
$(glib_enum_c): $(glib_enum_h)
|
|
$(QUIET_GEN)$(GLIB_MKENUMS) \
|
|
--template $(srcdir)/$(enum_tmpl_c) \
|
|
$(glib_enum_headers) > xgen-ec \
|
|
&& cp -f xgen-ec $(glib_enum_c) \
|
|
&& rm -f xgen-ec
|
|
|