Whamcloud - gitweb
libcom_err: Fix install rule if installing with hard links
authorTheodore Ts'o <tytso@mit.edu>
Sat, 4 Jun 2011 15:24:18 +0000 (11:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 4 Jun 2011 15:24:18 +0000 (11:24 -0400)
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" <tytso@mit.edu>
lib/et/Makefile.in

index 203dbac..19aa7d2 100644 (file)
@@ -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; \