Reformat and clean up the automake files
[synfig.git] / synfig-core / trunk / 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         src \
47         examples \
48         po
49
50
51 # Install the pkg-config file:
52 pkgconfigdir = $(libdir)/pkgconfig
53 pkgconfig_DATA = synfig.pc
54
55 bin_SCRIPTS = synfig-config
56
57 ACLOCAL_AMFLAGS = -I m4
58
59 EXTRA_DIST = \
60         ChangeLog.old \
61         TODO \
62         m4/subs.m4 \
63         config/package \
64         doc/hw-gfx-mapping.txt \
65         win32build.sh \
66         macosxbuild.sh \
67         win32inst.nsi.in \
68         COPYING \
69         config/depcomp \
70         m4/synfig.m4 \
71         m4/cxx_macros.m4 \
72         synfig.kdevprj \
73         synfig-config.in \
74         m4/ETL.m4 \
75         doxygen.cfg.in \
76         doxygen.cfg \
77         synfig.pc.in \
78         m4/pkgconfig.m4 \
79         m4/libxml++.m4 \
80         @PACKAGE_TARNAME@.pc.in \
81         pkg-info/macosx/core-resources/ReadMe.txt \
82         pkg-info/macosx/core-resources/Welcome.txt \
83         pkg-info/macosx/core-resources/install.sh
84
85
86 GREP=grep
87 PRINTF=printf
88 SH=sh
89 DOXYGEN=doxygen
90
91 SVN=svn
92 TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@
93
94
95 tagstable:
96         -$(SVN) delete $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Removing old tag"
97         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/stable -m "Stable Tag: Copying everything over"
98
99 tagrelease:
100         $(SVN) copy $(top_srcdir) $(SVN_REPOSITORY)/tags/$(TAG) -m "Release $(TAG)"
101
102 stats:
103         -@echo
104         -@echo  -- Stats
105         -@echo
106         -@$(PRINTF) "Total lines: "
107         -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
108         -@$(PRINTF) "Total size: "
109         -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total
110         -@echo 
111
112 ChangeLog:
113         -svn update
114         svn2cl --include-rev || touch 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