Commit b0266b34b7f39a874e9d1cf7e9369ce6b0e64718

Authored by Rodrigo Siqueira de Melo
1 parent 051d9669

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
@@ -2,40 +2,43 @@ NAME = colab-deps @@ -2,40 +2,43 @@ NAME = colab-deps
2 VERSION = 1.11 2 VERSION = 1.11
3 PREFIX = /usr 3 PREFIX = /usr
4 TARGET = $(DESTDIR)$(PREFIX)/lib/colab 4 TARGET = $(DESTDIR)$(PREFIX)/lib/colab
  5 +DISTDIR = $(NAME)-$(VERSION)
  6 +TARBALL = dist/$(DISTDIR).tar.gz
  7 +
5 8
6 all: 9 all:
7 rm -rf ./build 10 rm -rf ./build
8 virtualenv ./build 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 virtualenv --relocatable ./build 14 virtualenv --relocatable ./build
11 15
12 clean: 16 clean:
13 $(RM) -r ./build 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 install: 21 install:
18 mkdir -p $$(dirname $(TARGET)) 22 mkdir -p $$(dirname $(TARGET))
19 rm -rf $(TARGET) 23 rm -rf $(TARGET)
20 cp -r ./build $(TARGET) 24 cp -r ./build $(TARGET)
21 25
22 -DISTDIR = $(NAME)-$(VERSION)  
23 -TARBALL = dist/$(DISTDIR).tar.gz  
24 26
25 sdist: $(TARBALL) 27 sdist: $(TARBALL)
26 28
27 $(TARBALL): 29 $(TARBALL):
28 mkdir -p $$(dirname $(TARBALL)) 30 mkdir -p $$(dirname $(TARBALL))
29 $(RM) $(TARBALL) 31 $(RM) $(TARBALL)
30 - mkdir $(DISTDIR) 32 + mkdir -p $(DISTDIR)
31 ln $(SOURCES) $(DISTDIR) 33 ln $(SOURCES) $(DISTDIR)
32 tar caf $(TARBALL) $(DISTDIR) 34 tar caf $(TARBALL) $(DISTDIR)
33 $(RM) -r $(DISTDIR) 35 $(RM) -r $(DISTDIR)
34 36
35 distclean: 37 distclean:
36 $(RM) -r $$(dirname $(TARBALL)) src/ 38 $(RM) -r $$(dirname $(TARBALL)) src/
37 - $(RM) --verbose *.tar.* *.whl *.zip 39 + $(RM) -r $(DISTDIR)
38 40
39 downloadtar: 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 @@ @@ -0,0 +1,5 @@
  1 +Dependencies:
  2 +* libxml2-devel
  3 +* libxslt-devel
  4 +* python-devel
  5 +* postgresql-devel