more updates
[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 AUTOMAKE_OPTIONS=dist-zip dist-shar dist-bzip2
4
5 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@-@VERSION@.spec
6
7 SUBDIRS=src images
8
9 EXTRA_DIST=COPYING TODO macosxbuild.sh win32build.sh win32inst.nsi.in bootstrap config/package config/depcomp config/cxx_macros.m4 @PACKAGE_TARNAME@-@VERSION@.spec config/project.spec.in config/build.cfg config/ETL.m4
10
11 # Desktop entry
12 #desktopdir              = $(datadir)/gnome/apps/Graphics
13 desktopdir              = $(prefix)/share/applications
14 desktop_DATA            = synfigstudio.desktop
15 #desktop_in_files        = synfigstudio.desktop.in
16 #desktop_DATA            = $(desktop_in_files:.desktop.in=.desktop)
17
18 # @INTLTOOL_DESKTOP_RULE@
19
20 mimedir              = $(prefix)/share/mime-info
21 mime_DATA            = synfigstudio.keys synfigstudio.mime
22
23 # Icon
24 icondir                 = $(datadir)/pixmaps
25 icon_DATA               = images/synfig_icon.png images/sif_icon.png
26
27
28 CVS=cvs
29 GREP=grep
30 PRINTF=printf
31 SH=sh
32 DOXYGEN=doxygen
33
34 stats:
35         -@echo
36         -@echo  -- Stats
37         -@echo
38         -@$(PRINTF) "Total lines: "
39         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
40         -@$(PRINTF) "Total size: "
41         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total
42         -@echo 
43
44 tagstable:
45         $(CVS) tag -F stable
46
47 tagrelease:
48         $(CVS) tag -F @PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
49
50 listfixmes:
51         -@echo
52         -@echo  -- List of pending FIXMEs
53         -@echo
54         -@$(GREP) FIXME -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
55         -@echo
56
57 listhacks:
58         -@echo
59         -@echo  -- List of pending HACKs
60         -@echo
61         -@$(GREP) HACK -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn)
62         -@echo
63
64 run: check
65
66 $(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
67         $(srcdir)/bootstrap
68
69 .doc_stamp: doxygen.cfg
70         $(DOXYGEN) doxygen.cfg
71         touch .doc_stamp
72
73 win32inst.nsi: $(srcdir)/win32inst.nsi.in
74         ./config.status win32inst.nsi
75
76
77 #if WIN32_PKG   
78 package: all win32inst.nsi
79 #       convert images/about_dialog.png images/about_dialog.bmp
80         make -C images sif_icon.ico
81         makensis win32inst.nsi
82 #else
83 #if MACOSX_PKG
84 package: all pkg-info/macosx/synfig-studio.info
85         [ -d pkg_root ] && $(RMDIR) pkg_root || true
86         make install prefix="`pwd`/pkg_root"
87         $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-studio.info -r $(srcdir)/pkg-info/macosx/studio-resources
88 #endif
89 #endif
90
91 html: .doc_stamp
92
93 rtf: .doc_stamp
94
95 docs: pdf html
96
97 .PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf