Commit e9975217d236f03326db2224f4983cd62b8b9af2

Authored by Rodrigo Siqueira de Melo
Committed by Sergio Oliveira
1 parent 6671bf5a

Change Makefile organization

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Lucas Moura <lucas.moura128@gmail.com>
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Showing 2 changed files with 16 additions and 8 deletions   Show diff stats
Makefile
... ... @@ -2,40 +2,43 @@ NAME = colab-deps
2 2 VERSION = 1.11
3 3 PREFIX = /usr
4 4 TARGET = $(DESTDIR)$(PREFIX)/lib/colab
  5 +DISTDIR = $(NAME)-$(VERSION)
  6 +TARBALL = dist/$(DISTDIR).tar.gz
  7 +
5 8  
6 9 all:
7 10 rm -rf ./build
8 11 virtualenv ./build
9   - ./build/bin/pip install --no-index --find-links=$(CURDIR) -r requirements.txt
  12 + ./build/bin/pip install --no-index --find-links=$(DISTDIR) --use-wheel -r requirements.txt
  13 + ./build/bin/pip install --no-index --find-links=$(DISTDIR) --no-deps -r requirements-colab-plugins.txt
10 14 virtualenv --relocatable ./build
11 15  
12 16 clean:
13 17 $(RM) -r ./build
14 18  
15   -SOURCES = Makefile requirements.txt *.tar.* *.whl *.zip
  19 +SOURCES = Makefile requirements.txt requirements-colab-plugins.txt *.tar.* *.whl *.zip
16 20  
17 21 install:
18 22 mkdir -p $$(dirname $(TARGET))
19 23 rm -rf $(TARGET)
20 24 cp -r ./build $(TARGET)
21 25  
22   -DISTDIR = $(NAME)-$(VERSION)
23   -TARBALL = dist/$(DISTDIR).tar.gz
24 26  
25 27 sdist: $(TARBALL)
26 28  
27 29 $(TARBALL):
28 30 mkdir -p $$(dirname $(TARBALL))
29 31 $(RM) $(TARBALL)
30   - mkdir $(DISTDIR)
  32 + mkdir -p $(DISTDIR)
31 33 ln $(SOURCES) $(DISTDIR)
32 34 tar caf $(TARBALL) $(DISTDIR)
33 35 $(RM) -r $(DISTDIR)
34 36  
35 37 distclean:
36 38 $(RM) -r $$(dirname $(TARBALL)) src/
37   - $(RM) --verbose *.tar.* *.whl *.zip
  39 + $(RM) -r $(DISTDIR)
38 40  
39 41 downloadtar:
40   - pip install --download $(CURDIR) -r requirements.txt
41   - pip install --download $(CURDIR) -r requirements-colab-plugins.txt --no-deps
  42 + mkdir -p $(DISTDIR)
  43 + pip install --download $(DISTDIR) -r requirements.txt
  44 + pip install --download $(DISTDIR) -r requirements-colab-plugins.txt --no-deps
... ...
README.md 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +Dependencies:
  2 +* libxml2-devel
  3 +* libxslt-devel
  4 +* python-devel
  5 +* postgresql-devel
... ...