This target is required to make the package build automatically.
Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
+BUILDSRC := $(PACKAGE)-$(PKGVER)
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
+DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
PVE_COMMON_FILES= \
Exception.pm
PVE_COMMON_FILES= \
Exception.pm
+.PHONY: $(BUILDSRC)
+$(BUILDSRC):
+ rm -rf $(BUILDSRC)
+ rsync -a debian $(BUILDSRC)
+ make DESTDIR=./$(BUILDSRC) install
+
-deb ${DEB}:
- rm -rf build
- rsync -a debian build
- make DESTDIR=./build install
- cd build; dpkg-buildpackage -rfakeroot -b -us -uc
+deb ${DEB}: $(BUILDSRC)
+ cd $(BUILDSRC); dpkg-buildpackage -rfakeroot -b -us -uc
+.PHONY: dsc
+dsc: $(BUILDSRC)
+ cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
+ lintian ${DSC}
+
install:
install -D -m 0644 PVE/APIClient/LWP.pm ${PERL5DIR}/PVE/APIClient/LWP.pm
install -m 0644 PVE/APIClient/Exception.pm ${PERL5DIR}/PVE/APIClient/Exception.pm
install:
install -D -m 0644 PVE/APIClient/LWP.pm ${PERL5DIR}/PVE/APIClient/LWP.pm
install -m 0644 PVE/APIClient/Exception.pm ${PERL5DIR}/PVE/APIClient/Exception.pm
- rm -rf ./build *.deb *.changes *.buildinfo
+ rm -rf ./$(BUILDSRC) *.deb *.changes *.buildinfo *.dsc *.tar.gz
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall