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