Don't include atkmm/stateset.h, since it is unused and will be removed from gtkmm...
[synfig.git] / synfig-core / trunk / Makefile.am
1 # $Header: /opt/voria/cvs/synfig/Makefile.am,v 1.5 2005/03/24 21:07:24 darco Exp $
2
3 #AUTOMAKE_OPTIONS=dist-zip dist-shar dist-bzip2
4 AUTOMAKE_OPTIONS=dist-zip dist-shar
5
6 MAINTAINERCLEANFILES=@PACKAGE_TARNAME@.pc.in @PACKAGE_TARNAME@.shar.gz @PACKAGE_TARNAME@.tar.gz @PACKAGE_TARNAME@.zip 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 @PACKAGE_TARNAME@.spec include/etl_profile.h.in libltdl/COPYING.LIB  libltdl/Makefile.in  libltdl/acinclude.m4  libltdl/config-h.in  libltdl/configure.in  libltdl/ltdl.h libltdl/Makefile.am  libltdl/README       libltdl/aclocal.m4    libltdl/configure    libltdl/ltdl.c        libltdl/stamp-h.in
7
8
9 SUBDIRS=libltdl src examples
10
11 # Install the pkg-config file:
12 pkgconfigdir = $(libdir)/pkgconfig
13 pkgconfig_DATA = @PACKAGE_TARNAME@.pc
14
15 bin_SCRIPTS=synfig-config
16
17 EXTRA_DIST=TODO config/subs.m4 bootstrap config/package doc/hw-gfx-mapping.txt win32build.sh macosxbuild.sh win32inst.nsi.in COPYING config/depcomp config/synfig.m4 config/cxx_macros.m4 synfig.pbproj/config.h synfig.pbproj/project.pbxproj @PACKAGE_TARNAME@.spec config/project.spec.in config/build.cfg synfig.kdevprj synfig-config.in config/ETL.m4 config/doxygen.cfg.in doxygen.cfg config/pkgconfig.pc.in config/pkgconfig.m4 config/libxml++.m4 @PACKAGE_TARNAME@.pc.in pkg-info/macosx/core-resources/ReadMe.txt pkg-info/macosx/core-resources/Welcome.txt pkg-info/macosx/core-resources/install.sh
18
19 CVS=cvs
20 GREP=grep
21 PRINTF=printf
22 SH=sh
23 DOXYGEN=doxygen
24
25 SVN=svn
26 TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
27
28
29 tagstable:
30         -$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stabe Tag: Removing old tag"
31         $(SVN) mkdir $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Creating new directory"
32         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everyhting over"
33
34 tagrelease:
35         $(SVN) mkdir $(SVN_REPOSITORY)/tags/$(TAG) -m "Release Tag: Making directory"
36         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
37
38 stats:
39         -@echo
40         -@echo  -- Stats
41         -@echo
42         -@$(PRINTF) "Total lines: "
43         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
44         -@$(PRINTF) "Total size: "
45         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
46         -@echo 
47
48 #tagstable:
49 #       $(CVS) tag -F stable
50
51 #tagrelease:
52 #       $(CVS) tag -F @PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
53
54
55 listfixmes:
56         -@echo
57         -@echo  -- List of pending FIXMEs
58         -@echo
59         -@$(GREP) -e FIXME -e "\\fixme" -n $(shell find $(top_srcdir) -name '*.[ch]*')
60         -@echo
61
62 listhacks:
63         -@echo
64         -@echo  -- List of pending HACKs
65         -@echo
66         -@$(GREP) -e HACK -e "\\hack" -n $(shell find $(top_srcdir) -name '*.[ch]*')
67         -@echo
68
69 listtodos:
70         -@echo
71         -@echo  -- List of pending TODOs
72         -@echo
73         -@$(GREP) -e TODO -e "\\todo" -n $(shell find $(top_srcdir) -name '*.[ch]*')
74         -@echo
75
76 listoptimizes:
77         -@echo
78         -@echo  -- List of pending optimizations
79         -@echo
80         -@$(GREP) -e OPTIMIZE -e "\\optimize" -n $(shell find $(top_srcdir) -name '*.[ch]*')
81         -@echo
82
83 listwritemes:
84         -@echo
85         -@echo  -- List of pending WRITEMEs
86         -@echo
87         -@$(GREP) -e WRITEME -e "\\writeme" -n $(shell find $(top_srcdir) -name '*.[ch]*')
88         -@echo
89
90 install-bin:
91         make -C src/synfig install-libLTLIBRARIES
92
93 win32inst.nsi: $(srcdir)/win32inst.nsi.in
94         ./config.status win32inst.nsi
95
96 pkg-info/macosx/synfig-core.info: $(srcdir)/pkg-info/macosx/synfig-core.info.in
97         ./config.status pkg-info/macosx/synfig-core.info
98
99 RMDIR=rm -fr
100
101 if WIN32_PKG    
102 package: all win32inst.nsi
103         makensis win32inst.nsi
104 else
105 if MACOSX_PKG
106 package: all pkg-info/macosx/synfig-core.info
107         [ -d pkg_root ] && $(RMDIR) pkg_root || true
108         make install-strip prefix="`pwd`/pkg_root"
109         $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-core.info -r $(srcdir)/pkg-info/macosx/core-resources
110 endif
111 endif
112
113 run: check
114
115 $(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
116         $(srcdir)/bootstrap
117
118 .doc_stamp: doxygen.cfg
119         $(DOXYGEN) doxygen.cfg
120         touch .doc_stamp
121
122 benchmark:
123         synfig -b -t null -q --time 0 $(srcdir)/examples/*.sif
124
125 html: .doc_stamp
126
127 rtf: .doc_stamp
128
129 docs: html
130
131 .PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf