]> git.proxmox.com Git - qemu-server.git/commitdiff
Force overwriting existing compressed man pages and symbolic links
authorEmmanuel Kasper <e.kasper@proxmox.com>
Wed, 13 Sep 2017 14:10:21 +0000 (16:10 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 25 Sep 2017 11:31:55 +0000 (13:31 +0200)
This allows calling the 'make install' target twice in a row.

Makefile

index 25eb34fffd5b6f56b6ea149249e3150d83bd3054..75362c6100b33c8dc1f3f0b5eac632ce20a9175d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -69,12 +69,12 @@ install: ${PKGSOURCES}
        install -D -m 0644 modules-load.conf ${DESTDIR}/etc/modules-load.d/qemu-server.conf
        install -m 0755 qmextract ${DESTDIR}${LIBDIR}
        install -m 0644 qm.1 ${DESTDIR}/${MAN1DIR}
-       gzip -9 -n ${DESTDIR}/${MAN1DIR}/qm.1
+       gzip -9 -n -f ${DESTDIR}/${MAN1DIR}/qm.1
        install -m 0644 qmrestore.1 ${DESTDIR}/${MAN1DIR}
-       gzip -9 -n ${DESTDIR}/${MAN1DIR}/qmrestore.1
+       gzip -9 -n -f ${DESTDIR}/${MAN1DIR}/qmrestore.1
        install -m 0644 qm.conf.5 ${DESTDIR}/${MAN5DIR}
-       gzip -9 -n ${DESTDIR}/${MAN5DIR}/qm.conf.5
-       cd ${DESTDIR}/${MAN5DIR}; ln -s qm.conf.5.gz vm.conf.5.gz
+       gzip -9 -n -f ${DESTDIR}/${MAN5DIR}/qm.conf.5
+       cd ${DESTDIR}/${MAN5DIR}; ln -s -f qm.conf.5.gz vm.conf.5.gz
 
 .PHONY: deb
 deb: ${DEB}