mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +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
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Rules for generating marshal files using glib-genmarshal
|
|
#
|
|
# Define:
|
|
# glib_marshal_list = marshal list file
|
|
# glib_marshal_prefix = prefix for marshal functions
|
|
#
|
|
# before including Makefile.am.marshal. You will also need to have
|
|
# the following targets already defined:
|
|
#
|
|
# CLEANFILES
|
|
# DISTCLEANFILES
|
|
# BUILT_SOURCES
|
|
# EXTRA_DIST
|
|
#
|
|
# Author: Emmanuele Bassi <ebassi@linux.intel.com>
|
|
|
|
marshal_h = $(glib_marshal_list:.list=.h)
|
|
marshal_c = $(glib_marshal_list:.list=.c)
|
|
|
|
CLEANFILES += stamp-marshal
|
|
DISTCLEANFILES += $(marshal_h) $(marshal_c)
|
|
BUILT_SOURCES += $(marshal_h) $(marshal_c)
|
|
EXTRA_DIST += $(srcdir)/$(glib_marshal_list)
|
|
|
|
stamp-marshal: $(glib_marshal_list)
|
|
$(QUIET_GEN)$(GLIB_GENMARSHAL) \
|
|
--prefix=$(glib_marshal_prefix) \
|
|
--header \
|
|
$(srcdir)/$(glib_marshal_list) > xgen-mh \
|
|
&& (cmp -s xgen-mh $(marshal_h) || cp -f xgen-mh $(marshal_h)) \
|
|
&& rm -f xgen-mh \
|
|
&& echo timestamp > $(@F)
|
|
|
|
$(marshal_h): stamp-marshal
|
|
@true
|
|
|
|
$(marshal_c): $(marshal_h)
|
|
$(QUIET_GEN)(echo "#include \"$(marshal_h)\"" ; \
|
|
$(GLIB_GENMARSHAL) \
|
|
--prefix=$(glib_marshal_prefix) \
|
|
--body \
|
|
$(srcdir)/$(glib_marshal_list)) > xgen-mc \
|
|
&& cp xgen-mc $(marshal_c) \
|
|
&& rm -f xgen-mc
|
|
|