Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-core / tags / synfig_0_61_07 / Makefile.am
1 # $Id$
2
3 MAINTAINERCLEANFILES=COPYING INSTALL @PACKAGE_TARNAME@.pc.in @PACKAGE_TARNAME@.tar.gz doxygen.cfg config/config.guess config/config.sub config/ltmain.sh config/ltmain.sh.orig config/ltmain.sh.rej 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
4
5
6 SUBDIRS=libltdl src examples
7
8 # Install the pkg-config file:
9 pkgconfigdir = $(libdir)/pkgconfig
10 pkgconfig_DATA = @PACKAGE_TARNAME@.pc
11
12 bin_SCRIPTS=synfig-config
13
14 EXTRA_DIST=ChangeLog.old 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 @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
15
16 CVS=cvs
17 GREP=grep
18 PRINTF=printf
19 SH=sh
20 DOXYGEN=doxygen
21
22 SVN=svn
23 TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
24
25
26 tagstable:
27         -$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Removing old tag"
28         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everything over"
29
30 tagrelease:
31         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
32
33 stats:
34         -@echo
35         -@echo  -- Stats
36         -@echo
37         -@$(PRINTF) "Total lines: "
38         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
39         -@$(PRINTF) "Total size: "
40         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
41         -@echo 
42
43 ChangeLog:
44         -svn update
45         svn2cl --include-rev || touch ChangeLog
46
47 #tagstable:
48 #       $(CVS) tag -F stable
49
50 #tagrelease:
51 #       $(CVS) tag -F @PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
52
53
54 listfixmes:
55         -@echo
56         -@echo  -- List of pending FIXMEs
57         -@echo
58         -@$(GREP) -e FIXME -e "\\fixme" -n $(shell find $(top_srcdir) -name '*.[ch]*')
59         -@echo
60
61 listhacks:
62         -@echo
63         -@echo  -- List of pending HACKs
64         -@echo
65         -@$(GREP) -e HACK -e "\\hack" -n $(shell find $(top_srcdir) -name '*.[ch]*')
66         -@echo
67
68 listtodos:
69         -@echo
70         -@echo  -- List of pending TODOs
71         -@echo
72         -@$(GREP) -e TODO -e "\\todo" -n $(shell find $(top_srcdir) -name '*.[ch]*')
73         -@echo
74
75 listoptimizes:
76         -@echo
77         -@echo  -- List of pending optimizations
78         -@echo
79         -@$(GREP) -e OPTIMIZE -e "\\optimize" -n $(shell find $(top_srcdir) -name '*.[ch]*')
80         -@echo
81
82 listwritemes:
83         -@echo
84         -@echo  -- List of pending WRITEMEs
85         -@echo
86         -@$(GREP) -e WRITEME -e "\\writeme" -n $(shell find $(top_srcdir) -name '*.[ch]*')
87         -@echo
88
89 install-bin:
90         make -C src/synfig install-libLTLIBRARIES
91
92 win32inst.nsi: $(srcdir)/win32inst.nsi.in
93         ./config.status win32inst.nsi
94
95 pkg-info/macosx/synfig-core.info: $(srcdir)/pkg-info/macosx/synfig-core.info.in
96         ./config.status pkg-info/macosx/synfig-core.info
97
98 RMDIR=rm -fr
99
100 if WIN32_PKG    
101 package: all win32inst.nsi
102         cp -fu `which libHalf-4.dll` src/modules/mod_openexr/.libs/
103         cp -fu `which libIlmImf-4.dll` src/modules/mod_openexr/.libs/
104         cp -fu `which libIlmThread-4.dll` src/modules/mod_openexr/.libs/
105         cp -fu `which libIex-4.dll` src/modules/mod_openexr/.libs/
106         makensis win32inst.nsi
107 else
108 if MACOSX_PKG
109 package: all pkg-info/macosx/synfig-core.info
110         [ -d pkg_root ] && $(RMDIR) pkg_root || true
111         make install-strip prefix="`pwd`/pkg_root"
112         $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-core.info -r $(srcdir)/pkg-info/macosx/core-resources
113 endif
114 endif
115
116 run: check
117
118 $(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
119         $(srcdir)/bootstrap
120
121 .doc_stamp: doxygen.cfg
122         $(DOXYGEN) doxygen.cfg
123         touch .doc_stamp
124
125 benchmark:
126         synfig -b -t null -q --time 0 $(srcdir)/examples/*.sif
127
128 html: .doc_stamp
129
130 rtf: .doc_stamp
131
132 docs: html
133
134 .PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf