]> git.proxmox.com Git - pve-storage.git/blobdiff - Makefile
use 'eq' instead of regex for simple equality test.
[pve-storage.git] / Makefile
index e0a79cabc0ecc44ea107f4c1e8dfc144142ae67d..da6cc9d61b3f1baa7dc2827d333581a4f86f738d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 VERSION=5.0
 PACKAGE=libpve-storage-perl
-PKGREL=1
+PKGREL=4
 
 DESTDIR=
 PREFIX=/usr
@@ -10,6 +10,8 @@ MANDIR=${PREFIX}/share/man
 DOCDIR=${PREFIX}/share/doc/${PACKAGE}
 MAN1DIR=${MANDIR}/man1/
 BASHCOMPLDIR=${PREFIX}/share/bash-completion/completions/
+CRONDIR=/etc/cron.d
+CRONREPLICA=${CRONDIR}/pve-replica
 
 export PERLDIR=${PREFIX}/share/perl5
 
@@ -33,15 +35,25 @@ pvesm.bash-completion:
        perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
        mv $@.tmp $@
 
+pvesr.bash-completion:
+       perl -I. -T -e "use PVE::CLI::pvesr; PVE::CLI::pvesr->generate_bash_completions();" >$@.tmp
+       mv $@.tmp $@
+
 .PHONY: install
-install: pvesm.1 pvesm.bash-completion
+install: pvesm.1 pvesm.bash-completion pvesr.bash-completion
        install -d ${DESTDIR}${SBINDIR}
        install -m 0755 pvesm ${DESTDIR}${SBINDIR}
+       install -m 0755 pvesr ${DESTDIR}${SBINDIR}
+       install -d ${DESTDIR}${CRONDIR}
+       install -m 0644 pve-replica ${DESTDIR}${CRONREPLICA}
        make -C PVE install
+       install -d ${DESTDIR}/var/lib/pve-replica
        install -d ${DESTDIR}/usr/share/man/man1
        install -m 0644 pvesm.1 ${DESTDIR}/usr/share/man/man1/
        gzip -9 -n ${DESTDIR}/usr/share/man/man1/pvesm.1
        install -m 0644 -D pvesm.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pvesm
+       install -m 0644 -D pvesr.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pverepm
+
 
 .PHONY: deb
 deb: ${DEB}
@@ -55,6 +67,7 @@ ${DEB}:
        install -D -m 0644 copyright debian/${DOCDIR}/copyright
        install -m 0644 changelog.Debian debian/${DOCDIR}/
        install -m 0644 triggers debian/DEBIAN
+       install -m 0644 conffiles debian/DEBIAN
        gzip -9 -n debian/${DOCDIR}/changelog.Debian
        echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" > debian/${DOCDIR}/SOURCE
        fakeroot dpkg-deb --build debian
@@ -65,7 +78,7 @@ ${DEB}:
 .PHONY: clean
 clean:
        make cleanup-docgen
-       rm -rf debian *.deb ${PACKAGE}-*.tar.gz dist *.1 *.tmp pvesm.bash-completion
+       rm -rf debian *.deb ${PACKAGE}-*.tar.gz dist *.1 *.tmp pvesm.bash-completion pvesr.bash-completion
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean