提交 d0062fb9 编写于 作者: A Andrea Bolognani

dist: ln(1) is not guaranteed to have a '-f' option

According to the autoconf manual, using '$(LN_S) -f' is not
portable; remove the target explicitly beforehand to work around
this limitation.

Adjust some slightly awkward indentation while at it.
上级 5938f2d0
...@@ -3079,7 +3079,8 @@ if WITH_NETWORK ...@@ -3079,7 +3079,8 @@ if WITH_NETWORK
$(DESTDIR)$(confdir)/qemu/networks/default.xml && \ $(DESTDIR)$(confdir)/qemu/networks/default.xml && \
rm $(DESTDIR)$(confdir)/qemu/networks/default.xml.t; } rm $(DESTDIR)$(confdir)/qemu/networks/default.xml.t; }
( cd $(DESTDIR)$(confdir)/qemu/networks/autostart && \ ( cd $(DESTDIR)$(confdir)/qemu/networks/autostart && \
$(LN_S) -f ../default.xml default.xml ) rm -f default.xml && \
$(LN_S) ../default.xml default.xml )
endif WITH_NETWORK endif WITH_NETWORK
uninstall-local:: uninstall-init uninstall-systemd uninstall-local:: uninstall-init uninstall-systemd
......
...@@ -424,7 +424,8 @@ NSS_SO_VER = 1 ...@@ -424,7 +424,8 @@ NSS_SO_VER = 1
install-exec-hook: install-exec-hook:
( cd $(DESTDIR)$(libdir) && \ ( cd $(DESTDIR)$(libdir) && \
$(LN_S) -f libnss_libvirt.so.$(NSS_SO_VER) nss_libvirt.so.$(NSS_SO_VER) ) rm -f nss_libvirt.so.$(NSS_SO_VER) && \
$(LN_S) libnss_libvirt.so.$(NSS_SO_VER) nss_libvirt.so.$(NSS_SO_VER) )
uninstall-local: uninstall-local:
-rm -f $(DESTDIR)$(libdir)/nss_libvirt.so.$(NSS_SO_VER) -rm -f $(DESTDIR)$(libdir)/nss_libvirt.so.$(NSS_SO_VER)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册