diff options
author | davilla <davilla@4pi.com> | 2011-10-07 20:32:42 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2011-10-07 20:38:29 -0400 |
commit | fd7bea10a58fd1b81b1715e6f83f5e8bea540b32 (patch) | |
tree | 97dd5226f62694a295deda37a1918b54e8d85bdd /tools/darwin/depends/distribute | |
parent | 62798c735e186fe334a387d3a9871e5563ddef98 (diff) |
[osx/ios] fixed build of script.module.pil, this also add the ability to cross-build any python module
Diffstat (limited to 'tools/darwin/depends/distribute')
-rw-r--r-- | tools/darwin/depends/distribute/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/darwin/depends/distribute/Makefile b/tools/darwin/depends/distribute/Makefile new file mode 100644 index 0000000000..7b1b5954db --- /dev/null +++ b/tools/darwin/depends/distribute/Makefile @@ -0,0 +1,32 @@ +include ../Makefile.include + +# lib name, version +APPNAME=distribute +VERSION=0.6.21 +SOURCE=$(APPNAME)-$(VERSION) +ARCHIVE=$(SOURCE).tar.gz + +# configuration settings +export PATH:=$(TOOLCHAIN)/bin:$(PATH) + +APP=$(SOURCE)/bin/$(APPNAME) +APPBIN=$(TOOLCHAIN)/bin/$(APPNAME) + +all: $(APPBIN) + +$(TARBALLS_LOCATION)/$(ARCHIVE): + $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) + +$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE) + rm -rf $(SOURCE) + $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + echo $(SOURCE) > .gitignore + +$(APPBIN): $(SOURCE) + cd $(SOURCE); $(TOOLCHAIN)/bin/python setup.py install --prefix=$(TOOLCHAIN) + +clean: + rm -rf $(SOURCE) + +distclean:: + rm -rf $(SOURCE) |