blob: 2418689dac710c72083404dae7062e597f15144a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001The makefile uses top_srcdir to find files that were created by configure, when
2it should use top_builddir.
3
4Upstream-Status: Submitted (http://bugzilla.sudo.ws/show_bug.cgi?id=708)
5Signed-off-by: Ross Burton <ross.burton@intel.com>
6
7---
8 src/Makefile.in | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/src/Makefile.in b/src/Makefile.in
12index f009e10..7acfb2d 100644
13--- a/src/Makefile.in
14+++ b/src/Makefile.in
15@@ -165,11 +165,11 @@ install-dirs:
16
17 install-rc: install-dirs
18 if [ -n "$(INIT_SCRIPT)" ]; then \
19- $(INSTALL) $(INSTALL_OWNER) -m 0755 $(top_srcdir)/init.d/$(INIT_SCRIPT) $(DESTDIR)$(INIT_DIR)/sudo; \
20+ $(INSTALL) $(INSTALL_OWNER) -m 0755 $(top_builddir)/init.d/$(INIT_SCRIPT) $(DESTDIR)$(INIT_DIR)/sudo; \
21 rm -f $(DESTDIR)$(RC_LINK); \
22 ln -s $(INIT_DIR)/sudo $(DESTDIR)$(RC_LINK); \
23 elif test -n "$(tmpfiles_d)"; then \
24- $(INSTALL) $(INSTALL_OWNER) -m 0644 $(top_srcdir)/init.d/sudo.conf $(DESTDIR)$(tmpfiles_d)/sudo.conf; \
25+ $(INSTALL) $(INSTALL_OWNER) -m 0644 $(top_builddir)/init.d/sudo.conf $(DESTDIR)$(tmpfiles_d)/sudo.conf; \
26 fi
27
28 install-binaries: install-dirs $(PROGS)
29--
302.1.4
31