1 |
# DT Flickr |
2 |
# |
3 |
# Douglas Thrift |
4 |
# |
5 |
# $Id$ |
6 |
|
7 |
ifeq ($(OS),Windows_NT) |
8 |
setup := python setup.py |
9 |
else |
10 |
setup := $(CURDIR)/setup.py |
11 |
endif |
12 |
|
13 |
.PHONY: all binary build clean register source upload |
14 |
|
15 |
all: build |
16 |
|
17 |
binary: |
18 |
ifneq ($(OS),Windows_NT) |
19 |
$(setup) bdist --formats egg |
20 |
else |
21 |
$(setup) bdist_wininst -p win32 --user-access-control auto |
22 |
$(setup) bdist_wininst -p win-amd64 --user-access-control auto |
23 |
endif |
24 |
|
25 |
build: |
26 |
$(setup) build |
27 |
|
28 |
clean: |
29 |
$(setup) clean |
30 |
|
31 |
register: |
32 |
$(setup) register |
33 |
|
34 |
ifneq ($(OS),Windows_NT) |
35 |
source: |
36 |
$(setup) sdist --formats bztar,gztar,zip |
37 |
endif |
38 |
|
39 |
upload: |
40 |
$(setup) upload -s |