1# $Id$ 2 3MAINTAINERCLEANFILES = \ 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 44SUBDIRS = \ 45 libltdl \ 46 build_tools \ 47 src \ 48 examples \ 49 po \ 50 test 51 52 53# Install the pkg-config file: 54pkgconfigdir = $(prefix)/libdata/pkgconfig 55pkgconfig_DATA = synfig.pc 56 57bin_SCRIPTS = synfig-config 58 59ACLOCAL_AMFLAGS = -I m4 60 61EXTRA_DIST = \ 62 ChangeLog.old \ 63 TODO \ 64 m4/subs.m4 \ 65 config/package \ 66 doc/hw-gfx-mapping.txt \ 67 macosxbuild.sh \ 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 86GREP=grep 87PRINTF=printf 88SH=sh 89DOXYGEN=doxygen 90 91SVN=svn 92TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@ 93 94stats: 95 -@echo 96 -@echo -- Stats 97 -@echo 98 -@$(PRINTF) "Total lines: " 99 -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total 100 -@$(PRINTF) "Total size: " 101 -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*') | $(GREP) total 102 -@echo 103 104ChangeLog: 105 ../autobuild/git2cl > ChangeLog 106 107listfixmes: 108 -@echo 109 -@echo -- List of pending FIXMEs 110 -@echo 111 -@$(GREP) -e FIXME -e "\\fixme" -n $(shell find $(top_srcdir) -name '*.[ch]*') 112 -@echo 113 114listhacks: 115 -@echo 116 -@echo -- List of pending HACKs 117 -@echo 118 -@$(GREP) -e HACK -e "\\hack" -n $(shell find $(top_srcdir) -name '*.[ch]*') 119 -@echo 120 121listtodos: 122 -@echo 123 -@echo -- List of pending TODOs 124 -@echo 125 -@$(GREP) -e TODO -e "\\todo" -n $(shell find $(top_srcdir) -name '*.[ch]*') 126 -@echo 127 128listoptimizes: 129 -@echo 130 -@echo -- List of pending optimizations 131 -@echo 132 -@$(GREP) -e OPTIMIZE -e "\\optimize" -n $(shell find $(top_srcdir) -name '*.[ch]*') 133 -@echo 134 135listwritemes: 136 -@echo 137 -@echo -- List of pending WRITEMEs 138 -@echo 139 -@$(GREP) -e WRITEME -e "\\writeme" -n $(shell find $(top_srcdir) -name '*.[ch]*') 140 -@echo 141 142install-bin: 143 make -C src/synfig install-libLTLIBRARIES 144 145RMDIR=rm -fr 146 147if MACOSX_PKG 148package: all pkg-info/macosx/synfig-core.info 149 [ -d pkg_root ] && $(RMDIR) pkg_root || true 150 make install-strip prefix="`pwd`/pkg_root" 151 $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-core.info -r $(srcdir)/pkg-info/macosx/core-resources 152endif 153 154run: check 155 156.doc_stamp: doxygen.cfg 157 $(DOXYGEN) doxygen.cfg 158 touch .doc_stamp 159 160benchmark: 161 synfig -b -t null -q --time 0 $(srcdir)/examples/*.sif 162 163html: .doc_stamp 164 165rtf: .doc_stamp 166 167docs: html 168 169.PHONY: stats listfixmes listhacks check docs pdf html rtf 170