From: Theodore Ts'o Date: Sat, 4 Jun 2011 15:24:18 +0000 (-0400) Subject: libcom_err: Fix install rule if installing with hard links X-Git-Tag: v1.42-WIP-0702~32^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e082c62093f34432af236f35764002646f1dcfc;p=thirdparty%2Fe2fsprogs.git libcom_err: Fix install rule if installing with hard links If $(LINK_INSTALL_FLAGS) is -f instead of -sf, the Makefile's install rule would not work correctly while installing com_err.h Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/et/Makefile.in b/lib/et/Makefile.in index 203dbacdb..19aa7d29f 100644 --- a/lib/et/Makefile.in +++ b/lib/et/Makefile.in @@ -96,7 +96,8 @@ install:: compile_et libcom_err.a $(HFILES) installdirs com_err.pc echo " INSTALL_DATA $(includedir)/et/$$i"; \ $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/et/$$i; \ done - $(Q) $(LN) $(LINK_INSTALL_FLAGS) $(includedir)/et/com_err.h $(DESTDIR)$(includedir) + $(Q) (cd $(DESTDIR)$(includedir) ;\ + $(LN) $(LINK_INSTALL_FLAGS) et/com_err.h . ) $(Q) for i in $(SHARE_FILES); do \ echo " INSTALL_DATA $(datadir)/et/$$i"; \ $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(datadir)/et/$$i; \