Initial Commit
[Projects.git] / sinks / Makefile
blob948bc5002289382c9dccad7d47b6f56f42a215b7
1 name = sinks
2 dist = dist
3 ver = 0.5
4 files = source/sink.py \
5 source/run.py \
6 source/config/default
7 build = build
9 sinks = $(dist)/$(ver)/$(name)-$(ver).zip $(dist)/$(ver)/$(name)-$(ver).tar \
10 $(dist)/$(ver)/$(name)-$(ver).rar $(dist)/$(ver)/$(name)-$(ver).7z \
11 $(dist)/$(ver)/$(name)-$(ver).tar.gz $(dist)/$(ver)/$(name)-$(ver).tar.bz2
12 license = gpl
13 email = mjbauer95@gmail.com
16 all: build
18 build: $(dist)/$(ver) prepare $(sinks) terminate
20 prepare: $(files)
21 @mkdir -p $(name)-$(ver)
22 @mkdir -p $(name)-$(ver)/sinks
23 @mkdir -p $(name)-$(ver)/config
24 @cp -r source/sinks/svn.py source/sinks/pc.py source/sinks/gdocs.py \
25 source/sinks/__init__.py $(name)-$(ver)/sinks
26 @cp -r source/run.py source/sink.py $(name)-$(ver)
27 @cp -r source/config/default $(name)-$(ver)/config
29 terminate: $(name)-$(ver)
30 @rm -r $(name)-$(ver)
32 $(dist):
33 @mkdir $(dist)
35 $(dist)/$(ver): $(dist)
36 @mkdir $(dist)/$(ver)
38 %.7z: $(name)-$(ver)
39 @7z a -r $@ $<
41 %.zip: $(name)-$(ver)
42 @zip -r $@ $<
44 %.rar: $(name)-$(ver)
45 @rar a -r $@ $<
47 %.deb: $(name)-$(ver).tar.bz2
48 dh_make -c $(license) -e $(email) -f $< -s
50 %.tar: $(name)-$(ver)
51 @tar -cvvf $@ $<
53 %.tar.gz: $(name)-$(ver)
54 @tar czvf $@ $<
56 %.tar.bz2: $(name)-$(ver)
57 @tar czvf $@ $<
59 %.exe:
60 @python setup.py py2exe
62 clean: $(dist)/$(ver)
63 @rm -r $(dist)/$(ver)