6 |
|
|
7 |
|
ifeq ($(OS),Windows_NT) |
8 |
|
setup := python setup.py |
9 |
+ |
chmod := --chmod=u+rw,go+r,Da+x,Fa-x |
10 |
+ |
PATH :=$(PATH);C:\\cygwin\\bin |
11 |
|
else |
12 |
|
setup := $(CURDIR)/setup.py |
13 |
+ |
chmod := |
14 |
|
endif |
15 |
|
|
16 |
+ |
upload = $(wildcard dist/$(shell $(setup) --fullname)*) |
17 |
+ |
server := backless.douglasthrift.net |
18 |
+ |
base := DouglasThrift.net/APT |
19 |
+ |
target := $(base)/data/files/$(shell $(setup) --name) |
20 |
+ |
stamp = $(patsubst dist/%,$(target)/%,$(upload)) |
21 |
+ |
|
22 |
|
.PHONY: all binary build clean register source upload |
23 |
|
|
24 |
|
all: build |
44 |
|
source: |
45 |
|
$(setup) sdist --formats bztar,gztar,zip upload -s |
46 |
|
endif |
47 |
+ |
|
48 |
+ |
upload: |
49 |
+ |
rsync -Pptv $(chmod) $(upload) $(server):$(target) |
50 |
+ |
ssh $(server) "$(base)/bin/apt-stamp update $(stamp)" |