]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: Always use $(LN_S) and $(MKDIR_P)
authorAndrea Bolognani <abologna@redhat.com>
Wed, 20 Apr 2016 16:17:07 +0000 (18:17 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 21 Apr 2016 08:02:36 +0000 (10:02 +0200)
autotools provide those for our convenience, so let's use them
everywhere instead of mixing in native command invocation.

Makefile.am
src/Makefile.am

index 92980824e7c852472f6c2c83272848a94fff1548..d6f09bae77121cf26e833748e3c36faeb02fe78c 100644 (file)
@@ -68,7 +68,7 @@ rpm: clean
 check-local: all tests
 
 cov: clean-cov
-       mkdir $(top_builddir)/coverage
+       $(MKDIR_P) $(top_builddir)/coverage
        $(LCOV) -c -o $(top_builddir)/coverage/libvirt.info.tmp \
          -d $(top_builddir)/src  -d $(top_builddir)/daemon \
          -d $(top_builddir)/tests
index ad1c0c3466377a66cba3996eb5a39b59bfd06067..03806952e90012f7dea15d09d65895a093e4cb89 100644 (file)
@@ -3079,7 +3079,7 @@ if WITH_NETWORK
              $(DESTDIR)$(confdir)/qemu/networks/default.xml && \
            rm $(DESTDIR)$(confdir)/qemu/networks/default.xml.t; }
        test -e $(DESTDIR)$(confdir)/qemu/networks/autostart/default.xml || \
-          ln -s ../default.xml \
+          $(LN_S) ../default.xml \
            $(DESTDIR)$(confdir)/qemu/networks/autostart/default.xml
 endif WITH_NETWORK