File: Makefile

package info (click to toggle)
synfigstudio 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 162,048 kB
  • sloc: cpp: 208,474; javascript: 25,487; ansic: 13,216; python: 7,509; sh: 6,391; makefile: 2,999; objc: 1,400; csh: 486; perl: 238; ruby: 73; xml: 11
file content (92 lines) | stat: -rw-r--r-- 2,539 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92

VERSION=0.61.03

COREDIR=synfig-core
STUDIODIR=synfig-studio
ETLDIR=etl

OUTPUTDIR=output

SRCPKG=Synfig.mpkg
OUTPKG=$(OUTPUTDIR)/Synfig-$(VERSION).mpkg
PKGDIR=$(OUTPKG)/Contents/Packages

SSH_USER=darco@www.bridgetone.com
SSH_DIR=~/voria/files

all: src osx package

publish:
	cd $(OUTPUTDIR) && tar c *.gz *.zip *.exe *.bz2 | ssh $(SSH_USER) "cd $(SSH_DIR) && tar xv" 

osx-pkg:
	rm -fr $(OUTPKG)
	rm -fr $(OUTPKG).zip
	cp -R $(SRCPKG) $(OUTPKG)
	cp -r $(OUTPUTDIR)/*.pkg $(PKGDIR)
	cd $(OUTPUTDIR) && zip -r Synfig-$(VERSION).mpkg.zip *.mpkg
	
core-osx:
	[ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
	rm -fr $(COREDIR)
	svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2
	cd $(COREDIR) && ./macosxbuild.sh
	cp -r $(COREDIR)/macosxbuild/*.pkg $(OUTPUTDIR)

studio-osx:
	[ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
	rm -fr $(STUDIODIR)
	svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2
	cd $(STUDIODIR) && ./macosxbuild.sh
	cp -r $(STUDIODIR)/macosxbuild/*.pkg $(OUTPUTDIR)

core-w32:
	[ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
	rm -fr $(COREDIR)
	svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2
	cd $(COREDIR) && ./win32build.sh
	cp -r $(COREDIR)/win32build/*.exe $(OUTPUTDIR)

studio-w32:
	[ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
	rm -fr $(STUDIODIR)
	svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2
	cd $(STUDIODIR) && ./win32build.sh
	cp -r $(STUDIODIR)/win32build/*.exe $(OUTPUTDIR)

core-src:
	[ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
	rm -fr $(COREDIR)
	svn export https://svn.voria.com/code/synfig-core/trunk $(COREDIR) || exit 2
	cd $(COREDIR) && libtoolize --ltdl --copy --force && autoreconf --force --install && ./configure
	make -C $(COREDIR) dist
	cp -r $(COREDIR)/*.gz $(OUTPUTDIR)

studio-src:
	[ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
	rm -fr $(STUDIODIR)
	svn export https://svn.voria.com/code/synfig-studio/trunk $(STUDIODIR) || exit 2
	cd $(STUDIODIR) && autoreconf --force --install && ./configure
	make -C $(STUDIODIR) dist
	cp -r $(STUDIODIR)/*.gz $(OUTPUTDIR)

etl-src:
	[ -d $(OUTPUTDIR) ] || mkdir $(OUTPUTDIR)
	rm -fr $(ETLDIR)
	svn export https://svn.voria.com/code/ETL/trunk $(ETLDIR) || exit 2
	cd $(ETLDIR) && autoreconf --force --install && ./configure
	make -C $(ETLDIR) dist
	cp -r $(ETLDIR)/*.gz $(OUTPUTDIR)

src: etl-src core-src studio-src

osx: core-osx studio-osx

w32: core-w32 studio-w32

clean:
	rm -fr $(COREDIR)
	rm -fr $(STUDIODIR)
	rm -fr $(ETLDIR)
	rm -fr $(OUTPUTDIR)