Update SVN_REPOSITORY variable to the new svn in sourceforge
[synfig.git] / synfig-studio / trunk / Makefile.am
1 # $Id$
2
3 MAINTAINERCLEANFILES=COPYING INSTALL config/ltmain.sh doxygen.cfg config/config.guess config/config.sub config/ltmain.sh config/install-sh config/mkinstalldirs config/aclocal.m4 config/missing config/texinfo.tex config/depcomp aclocal.m4 config.h.in configure stamp-h.in Makefile.in config.log config.status .doc_stamp .DS_Store
4
5 SUBDIRS=build_tools src images po
6
7 EXTRA_DIST=COPYING TODO m4/subs.m4 doxygen.cfg.in doxygen.cfg macosxbuild.sh win32build.sh win32inst.nsi.in config/package config/depcomp m4/cxx_macros.m4 m4/ETL.m4 ChangeLog.old synfigstudio.xml.in synfigstudio-thumbnailer.schemas.in
8
9 # Desktop entry
10 #desktopdir              = $(datadir)/gnome/apps/Graphics
11 desktopdir              = $(prefix)/share/applications
12 desktop_DATA            = synfigstudio.desktop
13 #desktop_in_files        = synfigstudio.desktop.in
14 #desktop_DATA            = $(desktop_in_files:.desktop.in=.desktop)
15
16 # @INTLTOOL_DESKTOP_RULE@
17
18 mimedir              = $(prefix)/share/mime-info
19 mime_DATA            = synfigstudio.keys synfigstudio.mime
20
21 # Icon
22 icondir                 = $(datadir)/pixmaps
23 icon_DATA               = images/synfig_icon.png images/sif_icon.png
24
25 ACLOCAL_AMFLAGS=-I m4
26
27 CVS=cvs
28 GREP=grep
29 PRINTF=printf
30 SH=sh
31 DOXYGEN=doxygen
32 #SVN_REPOSITORY=@SVN_REPOSITORY@
33
34 SVN=svn
35 TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
36
37
38 tagstable:
39         -$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Removing old tag"
40         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everything over"
41
42 tagrelease:
43         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
44
45 ChangeLog:
46         -svn update
47         svn2cl --include-rev || touch ChangeLog
48
49 stats:
50         -@echo
51         -@echo  -- Stats
52         -@echo
53         -@$(PRINTF) "Total lines: "
54         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
55         -@$(PRINTF) "Total size: "
56         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
57         -@echo 
58
59 #tagstable:
60 #       $(CVS) tag -F stable
61
62 #tagrelease:
63 #       $(CVS) tag -F @PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
64
65 listfixmes:
66         -@echo
67         -@echo  -- List of pending FIXMEs
68         -@echo
69         -@$(GREP) FIXME -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
70         -@echo
71
72 listhacks:
73         -@echo
74         -@echo  -- List of pending HACKs
75         -@echo
76         -@$(GREP) HACK -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
77         -@echo
78
79 run: check
80
81 .doc_stamp: doxygen.cfg
82         $(DOXYGEN) doxygen.cfg
83         touch .doc_stamp
84
85 package-win32: all win32inst.nsi
86         convert images/installer_logo.png bmp3:images/installer_logo.bmp
87         make -C images sif_icon.ico synfig_icon.ico
88         grep -v -e 'installer_logo' -e 'sif_icon' images/images.nsh >images/images.nsh.tmp
89         grep -v -e 'installer_logo' -e 'sif_icon' images/unimages.nsh >images/unimages.nsh.tmp
90         mv -f images/images.nsh.tmp images/images.nsh
91         mv -f images/unimages.nsh.tmp images/unimages.nsh
92         makensis win32inst.nsi
93
94 package-osx: all pkg-info/macosx/synfig-studio.info
95         [ -d pkg_root ] && $(RMDIR) pkg_root || true
96         convert images/installer_logo_osx.png $(srcdir)/pkg-info/macosx/studio-resources/background.tif
97         make install prefix="`pwd`/pkg_root"
98         $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-studio.info -r $(srcdir)/pkg-info/macosx/studio-resources
99 if WIN32_PKG    
100 package: package-win32
101 else
102 if MACOSX_PKG
103 package: package-osx
104 endif
105 endif
106
107 html: .doc_stamp
108
109 rtf: .doc_stamp
110
111 docs: pdf html
112
113 .PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf