[pve-devel] r4983 - pve-access-control/trunk
svn-commits at proxmox.com
svn-commits at proxmox.com
Thu Aug 12 14:22:51 CEST 2010
Author: dietmar
Date: 2010-08-12 12:22:51 +0000 (Thu, 12 Aug 2010)
New Revision: 4983
Modified:
pve-access-control/trunk/Makefile
Log:
improve install
Modified: pve-access-control/trunk/Makefile
===================================================================
--- pve-access-control/trunk/Makefile 2010-08-12 12:17:08 UTC (rev 4982)
+++ pve-access-control/trunk/Makefile 2010-08-12 12:22:51 UTC (rev 4983)
@@ -16,23 +16,27 @@
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
+API2_SOURCES= \
+ User.pm
+
all: ${DEB}
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
-install: pveum AccessControl.pm User.pm
+.PHONY: install
+install: pveum AccessControl.pm ${API2_SOURCES}
install -d ${DESTDIR}${BINDIR}
install -d ${DESTDIR}${SBINDIR}
install -m 0755 pveum ${DESTDIR}${SBINDIR}
install -D -m 0644 AccessControl.pm ${DESTDIR}${PERLDIR}/PVE/AccessControl.pm
- install -D -m 0644 User.pm ${DESTDIR}${PERLDIR}/PVE/API2/User.pm
+ for i in ${API2_SOURCES}; do install -D -m 0644 $$i ${DESTDIR}${PERLDIR}/PVE/API2/$$i; done
install -d ${DESTDIR}/usr/share/man/man1
pod2man -n pveum -s 1 -r "proxmox 2.0" -c "Proxmox Documentation" <pveum | gzip -9 > ${DESTDIR}/usr/share/man/man1/pveum.1.gz
.PHONY: deb
-deb ${DEB}: pveum AccessControl.pm User.pm control.in copyright changelog.Debian ChangeLog
+deb ${DEB}: pveum AccessControl.pm ${API2_SOURCES} control.in copyright changelog.Debian ChangeLog
rm -rf debian
mkdir debian
make DESTDIR=debian install
More information about the pve-devel
mailing list