Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-studio / tags / synfigstudio_0_61_07_rc3 / Makefile.am
1 # $Id$
2
3 MAINTAINERCLEANFILES=config/ltmain.sh 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 @PACKAGE_TARNAME@.spec
4
5 SUBDIRS=src images
6
7 EXTRA_DIST=COPYING TODO config/subs.m4 macosxbuild.sh win32build.sh win32inst.nsi.in bootstrap config/package config/depcomp config/cxx_macros.m4 @PACKAGE_TARNAME@.spec config/project.spec.in config/build.cfg config/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
26 CVS=cvs
27 GREP=grep
28 PRINTF=printf
29 SH=sh
30 DOXYGEN=doxygen
31 #SVN_REPOSITORY=@SVN_REPOSITORY@
32
33 SVN=svn
34 TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
35
36
37 tagstable:
38         -$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Removing old tag"
39         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everything over"
40
41 tagrelease:
42         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
43
44 ChangeLog:
45         -svn update
46         svn2cl --include-rev || touch ChangeLog
47
48 stats:
49         -@echo
50         -@echo  -- Stats
51         -@echo
52         -@$(PRINTF) "Total lines: "
53         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
54         -@$(PRINTF) "Total size: "
55         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
56         -@echo 
57
58 #tagstable:
59 #       $(CVS) tag -F stable
60
61 #tagrelease:
62 #       $(CVS) tag -F @PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
63
64 listfixmes:
65         -@echo
66         -@echo  -- List of pending FIXMEs
67         -@echo
68         -@$(GREP) FIXME -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
69         -@echo
70
71 listhacks:
72         -@echo
73         -@echo  -- List of pending HACKs
74         -@echo
75         -@$(GREP) HACK -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
76         -@echo
77
78 run: check
79
80 $(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
81         $(srcdir)/bootstrap
82
83 .doc_stamp: doxygen.cfg
84         $(DOXYGEN) doxygen.cfg
85         touch .doc_stamp
86
87 win32inst.nsi: $(srcdir)/win32inst.nsi.in
88         ./config.status win32inst.nsi
89
90 package-win32: all win32inst.nsi
91         convert images/installer_logo.png bmp3:images/installer_logo.bmp
92         make -C images sif_icon.ico synfig_icon.ico
93         grep -v -e 'installer_logo' -e 'sif_icon' images/images.nsh >images/images.nsh.tmp
94         grep -v -e 'installer_logo' -e 'sif_icon' images/unimages.nsh >images/unimages.nsh.tmp
95         mv -f images/images.nsh.tmp images/images.nsh
96         mv -f images/unimages.nsh.tmp images/unimages.nsh
97         makensis win32inst.nsi
98
99 package-osx: all pkg-info/macosx/synfig-studio.info
100         [ -d pkg_root ] && $(RMDIR) pkg_root || true
101         convert images/installer_logo_osx.png $(srcdir)/pkg-info/macosx/studio-resources/background.tif
102         make install prefix="`pwd`/pkg_root"
103         $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-studio.info -r $(srcdir)/pkg-info/macosx/studio-resources
104 if WIN32_PKG    
105 package: package-win32
106 else
107 if MACOSX_PKG
108 package: package-osx
109 endif
110 endif
111
112 html: .doc_stamp
113
114 rtf: .doc_stamp
115
116 docs: pdf html
117
118 .PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf