NAME = colab-deps VERSION = 1.13.13 PREFIX = /usr TARGET = $(DESTDIR)$(PREFIX)/lib/colab DISTDIR = $(NAME)-$(VERSION) TARBALL = dist/$(DISTDIR).tar.gz # TAGS PIP = 1.5.6 NOOSFERO_PLUGIN = 0.2.16 GITLAB_PLUGIN = 0.2.15 MEZURO_PLUGIN = 0.1.4 SUPERARCHIVES_PLUGIN = 0.1.0 all: virtualenv ./build/bin/pip install --no-index --find-links=$(DISTDIR) pip==$(PIP) ./build/bin/pip install --no-index --find-links=$(DISTDIR) --use-wheel -r requirements.txt ./build/bin/pip install --no-index --find-links=$(DISTDIR) --no-deps -r requirements-colab-plugins.txt virtualenv --relocatable ./build clean: $(RM) -r ./build SOURCES = Makefile requirements.txt requirements-colab-plugins.txt install: mkdir -p $$(dirname $(TARGET)) rm -rf $(TARGET) cp -r ./build $(TARGET) sdist: $(TARBALL) $(TARBALL): mkdir -p $$(dirname $(TARBALL)) $(RM) $(TARBALL) tar czf $(TARBALL) $(SOURCES) $(DISTDIR) distclean: $(RM) -r $$(dirname $(TARBALL)) src/ $(RM) -r $(DISTDIR) downloadtar: virtualenv mkdir -p $(DISTDIR) wget https://pypi.python.org/packages/source/p/pip/pip-$(PIP).tar.gz -O $(DISTDIR)/pip-$(PIP).tar.gz wget https://github.com/colab/colab-noosfero-plugin/archive/v$(NOOSFERO_PLUGIN).zip -O $(DISTDIR)/colab-noosfero-plugin-$(NOOSFERO_PLUGIN).zip wget https://github.com/colab/colab-gitlab-plugin/archive/v$(GITLAB_PLUGIN).zip -O $(DISTDIR)/colab-gitlab-plugin-$(GITLAB_PLUGIN).zip wget https://github.com/colab/colab-mezuro-plugin/archive/v$(MEZURO_PLUGIN).zip -O $(DISTDIR)/colab-mezuro-plugin-$(MEZURO_PLUGIN).zip wget https://github.com/colab/colab-superarchives-plugin/archive/v$(SUPERARCHIVES_PLUGIN).zip -O $(DISTDIR)/colab-superarchives-plugin-$(SUPERARCHIVES_PLUGIN).zip ./build/bin/pip install --download $(DISTDIR) -r requirements.txt .PHONY: virtualenv virtualenv: rm -rf ./build virtualenv ./build