VERSION=5.4.7 INSTANCE_REVISION=001 DEST=/opt/erp5/${VERSION} INST=/var/lib/erp5/smb${INSTANCE_REVISION} clean: sudo rm -Rf ${DEST} build: sudo mkdir -p ${DEST} $(INST) sudo chmod a+rwx ${DEST} $(INST) erp5apptest212 -v -s -u -o -l ./run.log --software_path=$(DEST) --instance_path=$(INST) . prepare: sudo easy_install erp5.appliance.test # Demo-setup is required due a lack of feature of standard buildout # which is not able to create the instance. demo-setup: $(INST)/bin/supervisord $(INST)/var/bin/supervisorctl stop development-site sed -i "s/enable-product-installation off/enable-product-installation on/g" $(INST)/parts/development-site/etc/zope.conf $(INST)/bin/development-site run build-demo-instance.py $(INST)/var/bin/supervisorctl shutdown sed -i "s/enable-product-installation on/enable-product-installation off/g" $(INST)/parts/development-site/etc/zope.conf # Dependencies for distributions ubuntu-dependencies: sudo apt-get install rpm2cpio build-essential dpkg-dev debhelper mandriva-dependencies: sudo urpmi --auto rpm-build opensuse-dependencies: sudo zypper install -y mono-devel gcc gcc-c++ make fedora-dependencies: sudo yum install -y auto-buildrequires centos-dependencies: sudo yum install -y rpm-build gcc gcc-c++ make # Build for RPMs and DEB packages rpm: sudo -E rpmbuild -bb specs/erp5-official-software.spec rpm-instance: sudo -E rpmbuild -bb specs/erp5-official-instance.spec deb: cd specs/erp5-official-software-deb/; sudo dpkg-buildpackage -b deb-instance: cd specs/erp5-official-instance-deb/; sudo dpkg-buildpackage -b # Builds for distributions ubuntu: clean ubuntu-dependencies prepare build deb mandriva: clean mandriva-dependencies prepare build rpm opensuse: clean opensuse-dependencies prepare build rpm fedora: clean fedora-dependencies prepare build rpm centos: clean centos-dependencies prepare build rpm