NAME = colab-deps VERSION = 1.11.5 PREFIX = /usr TARGET = $(DESTDIR)$(PREFIX)/lib/colab DISTDIR = $(NAME)-$(VERSION) TARBALL = dist/$(DISTDIR).tar.gz all: rm -rf ./build virtualenv ./build ./build/bin/pip install --no-index --find-links=$(DISTDIR) pip==1.5.6 ./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: mkdir -p $(DISTDIR) wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz -O $(DISTDIR)/pip-1.5.6.tar.gz wget https://github.com/colab/colab-noosfero-plugin/archive/v0.1.1.zip -O $(DISTDIR)/colab-noosfero-plugin-0.1.1.zip wget https://github.com/colab/colab-gitlab-plugin/archive/v0.1.1.zip -O $(DISTDIR)/colab-gitlab-plugin-0.1.1.zip wget https://softwarepublico.gov.br/gitlab/softwarepublico/colab-spb-plugin/repository/archive.tar.gz?ref=v0.1 -O $(DISTDIR)/colab-spb-plugin-0.1.tar.gz --no-check-certificate pip install --download $(DISTDIR) -r requirements.txt