diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-18 23:30:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-18 23:44:34 +0800 |
commit | 847567542f7e63b5924bca625413df384c42acdc (patch) | |
tree | 15fcc99680fc3b5a83c5159c7b20775398fe774d /libemail-engine | |
parent | d6e3388922276941a4266b743e094dc1bb404373 (diff) | |
download | gsoc2013-evolution-847567542f7e63b5924bca625413df384c42acdc.tar gsoc2013-evolution-847567542f7e63b5924bca625413df384c42acdc.tar.gz gsoc2013-evolution-847567542f7e63b5924bca625413df384c42acdc.tar.bz2 gsoc2013-evolution-847567542f7e63b5924bca625413df384c42acdc.tar.lz gsoc2013-evolution-847567542f7e63b5924bca625413df384c42acdc.tar.xz gsoc2013-evolution-847567542f7e63b5924bca625413df384c42acdc.tar.zst gsoc2013-evolution-847567542f7e63b5924bca625413df384c42acdc.zip |
build: Fix srcdir != builddir from git
Mimicing Colin's commit fb9b02e for E-D-S.
We can't do (cd $(srcdir); ...) and inside reference $(top_srcdir)
because that variable uses a *relative* path. Thus we copy the
approach from gnome-shell of explicitly using addprefix to append
the source directory.
(cherry picked from commit 7dec65de1a2f3c879a53a7a1649b0d8899412a39)
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | libemail-engine/Makefile.am | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libemail-engine/Makefile.am b/libemail-engine/Makefile.am index d8f8207323..649d298715 100644 --- a/libemail-engine/Makefile.am +++ b/libemail-engine/Makefile.am @@ -5,15 +5,15 @@ privsolib_LTLIBRARIES = libemail-engine.la ENUM_TYPES = e-mail-enums.h e-mail-enumtypes.h: $(top_srcdir)/enumtypes.h.template $(ENUM_TYPES) - $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template $(top_srcdir)/enumtypes.h.template \ + $(AM_V_GEN) $(GLIB_MKENUMS) --template $(top_srcdir)/enumtypes.h.template \ --fhead "#ifndef E_MAIL_ENUMTYPES_H\n#define E_MAIL_ENUMTYPES_H\n" \ --ftail "#endif /* E_MAIL_ENUMTYPES_H */\n" \ - $(ENUM_TYPES)) > $@ + $(addprefix $(srcdir)/,$(ENUM_TYPES)) > $@ e-mail-enumtypes.c: $(top_srcdir)/enumtypes.c.template $(ENUM_TYPES) - $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template $(top_srcdir)/enumtypes.c.template \ + $(AM_V_GEN) $(GLIB_MKENUMS) --template $(top_srcdir)/enumtypes.c.template \ --fhead "#include \"e-mail-enumtypes.h\"" \ - $(ENUM_TYPES)) > $@ + $(addprefix $(srcdir)/,$(ENUM_TYPES)) > $@ ENUM_GENERATED = e-mail-enumtypes.h e-mail-enumtypes.c |