1# $Id$ 2 3MAINTAINERCLEANFILES = \ 4 COPYING \ 5 INSTALL \ 6 config/ltmain.sh \ 7 doxygen.cfg \ 8 config/config.guess \ 9 config/config.sub \ 10 config/ltmain.sh \ 11 config/install-sh \ 12 config/mkinstalldirs \ 13 config/aclocal.m4 \ 14 config/missing \ 15 config/texinfo.tex \ 16 config/depcomp \ 17 aclocal.m4 \ 18 config.h.in \ 19 configure \ 20 stamp-h.in \ 21 Makefile.in \ 22 config.log \ 23 config.status \ 24 .doc_stamp \ 25 .DS_Store 26 27DISTCLEANFILES = \ 28 synfigstudio.desktop \ 29 $(appdata_DATA) 30 31SUBDIRS = \ 32 build_tools \ 33 brushes \ 34 src \ 35 images \ 36 plugins \ 37 po 38 39EXTRA_DIST = \ 40 COPYING \ 41 TODO \ 42 m4/subs.m4 \ 43 doxygen.cfg.in \ 44 doxygen.cfg \ 45 macosxbuild.sh \ 46 config/package \ 47 config/depcomp \ 48 m4/cxx_macros.m4 \ 49 m4/ETL.m4 \ 50 ChangeLog.old \ 51 synfigstudio.desktop.in \ 52 synfigstudio.appdata.xml.in \ 53 synfigstudio.xml.in \ 54 synfigstudio-thumbnailer.schemas.in 55 56 57DISTCHECK_CONFIGURE_FLAGS = --disable-update-mimedb 58 59# Desktop entry 60desktopdir = $(prefix)/share/applications 61desktop_DATA = synfigstudio.desktop 62 63@INTLTOOL_DESKTOP_RULE@ 64 65mimeinfodir = $(prefix)/share/mime-info 66mimeinfo_DATA = synfigstudio.keys synfigstudio.mime 67 68# Appdata 69appdatadir = $(datadir)/appdata 70appdata_DATA = synfigstudio.appdata.xml 71@INTLTOOL_XML_RULE@ 72 73# Icon 74icondir = $(datadir)/pixmaps 75icon_DATA = images/synfig_icon.png images/sif_icon.png 76 77mimedir = $(prefix)/share/mime/packages 78mime_DATA = synfigstudio.xml 79 80ACLOCAL_AMFLAGS=-I m4 81 82GREP=grep 83PRINTF=printf 84SH=sh 85DOXYGEN=doxygen 86#SVN_REPOSITORY=@SVN_REPOSITORY@ 87 88SVN=svn 89TAG=@PACKAGE_TARNAME@_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@ 90 91ChangeLog: 92 ../autobuild/git2cl > ChangeLog 93 94stats: 95 -@echo 96 -@echo -- Stats 97 -@echo 98 -@$(PRINTF) "Total lines: " 99 -@wc -l $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total 100 -@$(PRINTF) "Total size: " 101 -@du -hcs $(shell find $(top_srcdir)/src -name '*.[ch]*' | $(GREP) -v libavcodec) | $(GREP) total 102 -@echo 103 104listfixmes: 105 -@echo 106 -@echo -- List of pending FIXMEs 107 -@echo 108 -@$(GREP) FIXME -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn) 109 -@echo 110 111listhacks: 112 -@echo 113 -@echo -- List of pending HACKs 114 -@echo 115 -@$(GREP) HACK -n $(shell find $(top_srcdir) -name '*.[ch]*' | grep -v svn) 116 -@echo 117 118run: check 119 120.doc_stamp: doxygen.cfg 121 $(DOXYGEN) doxygen.cfg 122 touch .doc_stamp 123 124package-osx: all pkg-info/macosx/synfig-studio.info 125 [ -d pkg_root ] && $(RMDIR) pkg_root || true 126 convert images/installer_logo_osx.png $(srcdir)/pkg-info/macosx/studio-resources/background.tif 127 make install prefix="`pwd`/pkg_root" 128 $(srcdir)/config/package pkg_root pkg-info/macosx/synfig-studio.info -r $(srcdir)/pkg-info/macosx/studio-resources 129if MACOSX_PKG 130package: package-osx 131endif 132 133install-data-hook: 134if ENABLE_UPDATE_MIMEDB 135 $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime" 136endif 137 138uninstall-hook: 139if ENABLE_UPDATE_MIMEDB 140 $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(datadir)/mime" 141endif 142 143html: .doc_stamp 144 145rtf: .doc_stamp 146 147docs: pdf html 148 149.PHONY: stats listfixmes listhacks check docs pdf html rtf 150