aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-04-18 23:30:24 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-18 23:30:24 +0800
commit7dec65de1a2f3c879a53a7a1649b0d8899412a39 (patch)
tree27fb8af7088cd4635b5ca2519eab4b7b95258ed7 /shell
parent2f47b719dd129eb5821c2b186455c979e043f585 (diff)
downloadgsoc2013-evolution-7dec65de1a2f3c879a53a7a1649b0d8899412a39.tar
gsoc2013-evolution-7dec65de1a2f3c879a53a7a1649b0d8899412a39.tar.gz
gsoc2013-evolution-7dec65de1a2f3c879a53a7a1649b0d8899412a39.tar.bz2
gsoc2013-evolution-7dec65de1a2f3c879a53a7a1649b0d8899412a39.tar.lz
gsoc2013-evolution-7dec65de1a2f3c879a53a7a1649b0d8899412a39.tar.xz
gsoc2013-evolution-7dec65de1a2f3c879a53a7a1649b0d8899412a39.tar.zst
gsoc2013-evolution-7dec65de1a2f3c879a53a7a1649b0d8899412a39.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.
Diffstat (limited to 'shell')
-rw-r--r--shell/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am
index d36547e609..92bfe49bcc 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -9,15 +9,15 @@ eshellincludedir = $(privincludedir)/shell
ENUM_TYPES = e-shell.h
e-shell-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_SHELL_ENUMTYPES_H\n#define E_SHELL_ENUMTYPES_H\n" \
--ftail "#endif /* E_SHELL_ENUMTYPES_H */\n" \
- $(ENUM_TYPES)) > $@
+ $(addprefix $(srcdir)/,$(ENUM_TYPES)) > $@
e-shell-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-shell-enumtypes.h\"" \
- $(ENUM_TYPES)) > $@
+ $(addprefix $(srcdir)/,$(ENUM_TYPES)) > $@
ENUM_GENERATED = e-shell-enumtypes.h e-shell-enumtypes.c