Don't need to build anything other than a tar.gz
[synfig.git] / synfig-studio / trunk / Makefile.am
1 # $Header: /opt/voria/cvs/studio/Makefile.am,v 1.3 2005/03/24 21:40:05 darco Exp $
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 "Stabe Tag: Removing old tag"
39         $(SVN) mkdir $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Creating new directory"
40         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everyhting over"
41
42 tagrelease:
43         $(SVN) mkdir $(SVN_REPOSITORY)/tags/$(TAG) -m "Release Tag: Making directory"
44         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
45
46 stats:
47         -@echo
48         -@echo  -- Stats
49         -@echo
50         -@$(PRINTF) "Total lines: "
51         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
52         -@$(PRINTF) "Total size: "
53         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
54         -@echo 
55
56 #tagstable:
57 #       $(CVS) tag -F stable
58
59 #tagrelease:
60 #       $(CVS) tag -F @PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
61
62 listfixmes:
63         -@echo
64         -@echo  -- List of pending FIXMEs
65         -@echo
66         -@$(GREP) FIXME -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
67         -@echo
68
69 listhacks:
70         -@echo
71         -@echo  -- List of pending HACKs
72         -@echo
73         -@$(GREP) HACK -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
74         -@echo
75
76 run: check
77
78 $(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
79         $(srcdir)/bootstrap
80
81 .doc_stamp: doxygen.cfg
82         $(DOXYGEN) doxygen.cfg
83         touch .doc_stamp
84
85 win32inst.nsi: $(srcdir)/win32inst.nsi.in
86         ./config.status win32inst.nsi
87
88 package-win32: all win32inst.nsi
89         convert images/installer_logo.png bmp3:images/installer_logo.bmp
90         rm images/installer_logo*.png
91         make -C images sif_icon.ico synfig_icon.ico
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