Patchwork libquota: fix "make install" so it works in with a VPATH build directory

login
register
mail settings
Submitter Theodore Ts'o
Date Sept. 14, 2011, 5:18 p.m.
Message ID <1316020683-19141-1-git-send-email-tytso@mit.edu>
Download mbox | patch
Permalink /patch/114693/
State Accepted
Headers show

Comments

Theodore Ts'o - Sept. 14, 2011, 5:18 p.m.
Also fix up the name of the header file which we are installing so it
is correct.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
---
 lib/quota/Makefile.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/lib/quota/Makefile.in b/lib/quota/Makefile.in
index 0005ac0..1f57441 100644
--- a/lib/quota/Makefile.in
+++ b/lib/quota/Makefile.in
@@ -82,8 +82,8 @@  install:: all installdirs
 	$(Q) $(INSTALL_DATA) libquota.a $(DESTDIR)$(libdir)/libquota.a
 	-$(Q) $(RANLIB) $(DESTDIR)$(libdir)/libquota.a
 	$(Q) $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libquota.a
-	$(E) "	INSTALL_DATA $(includedir)/quota/quota.h"
-	$(Q) $(INSTALL_DATA) mkquota.h $(DESTDIR)$(includedir)/quota/mkquota.h
+	$(E) "	INSTALL_DATA $(includedir)/quota/mkquota.h"
+	$(Q) $(INSTALL_DATA) $(srcdir)/mkquota.h $(DESTDIR)$(includedir)/quota/mkquota.h
 	$(Q) for i in $(SMANPAGES); do \
 		$(RM) -f $(DESTDIR)$(man3dir)/$$i.gz; \
 		echo "	INSTALL_DATA $(man3dir)/$$i"; \