X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=Makefile;h=3ff3c55efb86eb9b9b4fa8b68e20e16d68d4ba96;hp=2345ecf498990ed0eb5e1b7c1fb8078033f84a24;hb=dcfaabd7ca0afb4e157634c4179cebb1482681a1;hpb=a6e94288547dabbdf8c0e79045be1c574654bf36 diff --git a/Makefile b/Makefile index 2345ecf..3ff3c55 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,15 @@ RELEASE=2.0 VERSION=1.0 PACKAGE=libpve-access-control -PKGREL=1 +PKGREL=3 DESTDIR= PREFIX=/usr BINDIR=${PREFIX}/bin SBINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/share/man -DOCDIR=${PREFIX}/share/doc +DOCDIR=${PREFIX}/share/doc/${PACKAGE} +PODDIR=${DOCDIR}/pod MAN1DIR=${MANDIR}/man1/ export PERLDIR=${PREFIX}/share/perl5 @@ -22,15 +23,26 @@ all: ${DEB} dinstall: deb dpkg -i ${DEB} +%.1.gz: %.1.pod + rm -f $@ + cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@.tmp + mv $@.tmp $@ + +pveum.1.pod: pveum + perl -I. ./pveum printmanpod >$@.tmp + mv $@.tmp $@ + .PHONY: install -install: +install: pveum.1.pod pveum.1.gz install -d ${DESTDIR}${BINDIR} install -d ${DESTDIR}${SBINDIR} install -m 0755 pveum ${DESTDIR}${SBINDIR} make -C PVE install perl -I. ./pveum verifyapi install -d ${DESTDIR}/usr/share/man/man1 - pod2man -n pveum -s 1 -r "proxmox 2.0" -c "Proxmox Documentation" ${DESTDIR}/usr/share/man/man1/pveum.1.gz + install -d ${DESTDIR}${PODDIR} + install -m 0644 pveum.1.gz ${DESTDIR}/usr/share/man/man1/ + install -m 0644 pveum.1.pod ${DESTDIR}/${PODDIR} .PHONY: deb ${DEB} deb ${DEB}: @@ -39,9 +51,9 @@ deb ${DEB}: make DESTDIR=`pwd`/build install install -d -m 0755 build/DEBIAN sed -e s/@@VERSION@@/${VERSION}/ -e s/@@PKGRELEASE@@/${PKGREL}/ -e s/@@ARCH@@/${ARCH}/ build/DEBIAN/control - install -D -m 0644 copyright build/${DOCDIR}/${PACKAGE}/copyright - install -m 0644 changelog.Debian build/${DOCDIR}/${PACKAGE}/ - gzip -9 build/${DOCDIR}/${PACKAGE}/changelog.Debian + install -D -m 0644 copyright build/${DOCDIR}/copyright + install -m 0644 changelog.Debian build/${DOCDIR}/ + gzip -9 build/${DOCDIR}/changelog.Debian dpkg-deb --build build mv build.deb ${DEB} #rm -rf build @@ -59,7 +71,7 @@ upload: ${DEB} .PHONY: clean clean: - rm -rf build *~ *.deb ${PACKAGE}-*.tar.gz + rm -rf build *~ *.deb ${PACKAGE}-*.tar.gz pveum.1.pod pveum.1.gz find . -name '*~' -exec rm {} ';' .PHONY: distclean