Use git instead of svn to generate ChangeLog.
[synfig.git] / synfig-core / Makefile.am
1 # $Id$
2
3 MAINTAINERCLEANFILES = \
4         COPYING \
5         INSTALL \
6         synfig.pc \
7         synfig-$(VERSION).tar.gz \
8         doxygen.cfg \
9         config/config.guess \
10         config/config.sub \
11         config/ltmain.sh \
12         config/ltmain.sh.orig \
13         config/ltmain.sh.rej \
14         config/install-sh \
15         config/mkinstalldirs \
16         config/aclocal.m4 \
17         config/missing \
18         config/texinfo.tex \
19         config/depcomp \
20         aclocal.m4 \
21         config.h.in \
22         configure \
23         stamp-h.in \
24         Makefile.in \
25         config.log \
26         config.status \
27         .doc_stamp \
28         .DS_Store \
29         include/etl_profile.h.in \
30         libltdl/COPYING.LIB \
31         libltdl/Makefile.in \
32         libltdl/acinclude.m4 \
33         libltdl/config-h.in \
34         libltdl/configure.in \
35         libltdl/ltdl.h \
36         libltdl/Makefile.am \
37         libltdl/README \
38         libltdl/aclocal.m4 \
39         libltdl/configure \
40         libltdl/ltdl.c \
41         libltdl/stamp-h.in
42
43
44 SUBDIRS = \
45         libltdl \
46         build_tools \
47         src \
48         examples \
49         po
50
51
52 # Install the pkg-config file:
53 pkgconfigdir = $(libdir)/pkgconfig
54 pkgconfig_DATA = synfig.pc
55
56 bin_SCRIPTS = synfig-config
57
58 ACLOCAL_AMFLAGS = -I m4
59
60 EXTRA_DIST = \
61         ChangeLog.old \
62         TODO \
63         m4/subs.m4 \
64         config/package \
65         doc/hw-gfx-mapping.txt \
66         win32build.sh \
67         macosxbuild.sh \
68         win32inst.nsi.in \
69         COPYING \
70         config/depcomp \
71         m4/synfig.m4 \
72         m4/cxx_macros.m4 \
73         synfig.kdevprj \
74         synfig-config.in \
75         m4/ETL.m4 \
76         doxygen.cfg.in \
77         doxygen.cfg \
78         synfig.pc.in \
79         m4/pkgconfig.m4 \
80         m4/libxml++.m4 \
81         @PACKAGE_TARNAME@.pc.in \
82         pkg-info/macosx/core-resources/ReadMe.txt \
83         pkg-info/macosx/core-resources/Welcome.txt \
84         pkg-info/macosx/core-resources/install.sh
85
86
87 GREP=grep
88 PRINTF=printf
89 SH=sh
90 DOXYGEN=doxygen
91
92 SVN=svn
93 TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
94
95
96 tagstable:
97         -$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Removing old tag"
98         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everything over"
99
100 tagrelease:
101         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
102
103 stats:
104         -@echo
105         -@echo  -- Stats
106         -@echo
107         -@$(PRINTF) "Total lines: "
108         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
109         -@$(PRINTF) "Total size: "
110         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
111         -@echo 
112
113 ChangeLog:
114         ../autobuild/git2cl > ChangeLog
115
116 listfixmes:
117         -@echo
118         -@echo  -- List of pending FIXMEs
119         -@echo
120         -@$(GREP) -e FIXME -e "\\fixme" -n $(shell find $(top_srcdir) -name '*.[ch]*')
121         -@echo
122
123 listhacks:
124         -@echo
125         -@echo  -- List of pending HACKs
126         -@echo
127         -@$(GREP) -e HACK -e "\\hack" -n $(shell find $(top_srcdir) -name '*.[ch]*')
128         -@echo
129
130 listtodos:
131         -@echo
132         -@echo  -- List of pending TODOs
133         -@echo
134         -@$(GREP) -e TODO -e "\\todo" -n $(shell find $(top_srcdir) -name '*.[ch]*')
135         -@echo
136
137 listoptimizes:
138         -@echo
139         -@echo  -- List of pending optimizations
140         -@echo
141         -@$(GREP) -e OPTIMIZE -e "\\optimize" -n $(shell find $(top_srcdir) -name '*.[ch]*')
142         -@echo
143
144 listwritemes:
145         -@echo
146         -@echo  -- List of pending WRITEMEs
147         -@echo
148         -@$(GREP) -e WRITEME -e "\\writeme" -n $(shell find $(top_srcdir) -name '*.[ch]*')
149         -@echo
150
151 install-bin:
152         make -C src/synfig install-libLTLIBRARIES
153
154 RMDIR=rm -fr
155
156 if WIN32_PKG    
157 package: all win32inst.nsi
158         cp -fu `which libHalf-6.dll` src/modules/mod_openexr/.libs/
159         cp -fu `which libIlmImf-6.dll` src/modules/mod_openexr/.libs/
160         cp -fu `which libIlmThread-6.dll` src/modules/mod_openexr/.libs/
161         cp -fu `which libIex-6.dll` src/modules/mod_openexr/.libs/
162         makensis win32inst.nsi
163 else
164 if MACOSX_PKG
165 package: all pkg-info/macosx/synfig-core.info
166         [ -d pkg_root ] && $(RMDIR) pkg_root || true
167         make install-strip prefix="`pwd`/pkg_root"
168         $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-core.info -r $(srcdir)/pkg-info/macosx/core-resources
169 endif
170 endif
171
172 run: check
173
174 .doc_stamp: doxygen.cfg
175         $(DOXYGEN) doxygen.cfg
176         touch .doc_stamp
177
178 benchmark:
179         synfig -b -t null -q --time 0 $(srcdir)/examples/*.sif
180
181 html: .doc_stamp
182
183 rtf: .doc_stamp
184
185 docs: html
186
187 .PHONY: stats tagstable tagrelease listfixmes listhacks check docs pdf html rtf