We were actually identifying as a version of Yahoo Messenger that doesn't
[pidgin-git.git] / Makefile.am
blob28c2e40fa1f0d73753ece5a4767e31f99ec0e61c
1 EXTRA_DIST = \
2                 COPYRIGHT \
3                 ChangeLog.API \
4                 ChangeLog.win32 \
5                 Doxyfile.in \
6                 HACKING \
7                 Makefile.mingw \
8                 PLUGIN_HOWTO \
9                 README.MTN \
10                 README.mingw \
11                 config.h.mingw \
12                 doxy2devhelp.xsl \
13                 fix-casts.sh \
14                 gaim.pc.in \
15                 gaim-uninstalled.pc.in \
16                 intltool-extract.in \
17                 intltool-merge.in \
18                 intltool-update.in \
19                 pidgin.apspec.in \
20                 pidgin.spec.in \
21                 pidgin.desktop.in \
22                 po/Makefile.mingw \
23                 valgrind-suppressions
25 noinst_HEADERS = config.h
27 dist-hook: pidgin.spec
28         cp pidgin.spec $(distdir)
29         rm $(distdir)/config.h
31 distcheck-hook: libpurple/plugins/perl/common/Purple.pm pidgin/plugins/perl/common/Pidgin.pm
32 #       cp libpurple/plugins/perl/common/Gaim.pm $(distdir)/libpurple/plugins/perl/common
34 commit-check:
35         (cd po ; intltool-update -m 2>&1 | grep -v '^mismatched quotes.*\.py$$' | sed "s|current directory|po directory|" | grep . ; if [ $$? = 0 ] ; then exit 1 ; else exit 0 ; fi)
36         LC_ALL=C sort -c -t/ -u po/POTFILES.in
37         LC_ALL=C sort -c -t/ -u po/POTFILES.skip
38         iconv -f utf8 -t utf8 COPYRIGHT | cmp COPYRIGHT -
40 version-check: commit-check
41 # We don't want to release development versions.
42         test x`echo $(PACKAGE_VERSION) | grep dev` = x
44 # Make sure there is a NEWS entry for this version
45         head NEWS | grep "^$(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" > /dev/null
47 # Ensure NEWS has no spaces at the start of a line.
48 # Using spaces instead of tabs there is a common mistake.
49         test x`grep "^ " NEWS` = x
51 # When doing a new minor (or major) release (X.Y.0), there must be a section in
52 # ChangeLog.API.
53         echo $(PACKAGE_VERSION) | grep -v "^[0-9]\+\.[0-9]\+\.0$$" >/dev/null || head ChangeLog.API | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
55 # For all releases, check the ChangeLogs.
56         head ChangeLog | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
57         head ChangeLog.win32 | grep "^version $(PACKAGE_VERSION) (`date +%m/%d/%Y`):$$" >/dev/null
58         head po/ChangeLog | grep "^version $(PACKAGE_VERSION)$$" >/dev/null
60 # Ensure we're working from a tag...
61         test x`mtn automate select t:v$(PACKAGE_VERSION)` = x`mtn automate get_base_revision_id`
62 # ... and have no changes in the working copy.
63         test "x`mtn diff | grep -v '^#'`" = x
65 release: version-check distcheck packages
67 packages:
68         gpg -ab pidgin-$(PACKAGE_VERSION).tar.gz
69         gpg -ab pidgin-$(PACKAGE_VERSION).tar.bz2
70         gpg --verify pidgin-$(PACKAGE_VERSION).tar.gz.asc pidgin-$(PACKAGE_VERSION).tar.gz
71         gpg --verify pidgin-$(PACKAGE_VERSION).tar.bz2.asc pidgin-$(PACKAGE_VERSION).tar.bz2
73 if ENABLE_GTK
74 appsdir = $(datadir)/applications
75 apps_in_files = pidgin.desktop.in
76 apps_DATA = $(apps_in_files:.desktop.in=.desktop)
77 @INTLTOOL_DESKTOP_RULE@
78 GTK_DIR=pidgin
79 endif
81 if ENABLE_GNT
82 GNT_DIR=finch
83 endif
85 if INSTALL_I18N
86 PO_DIR=po
87 endif
89 SUBDIRS = libpurple doc $(GNT_DIR) $(GTK_DIR) m4macros $(PO_DIR) share/ca-certs share/sounds
91 docs: Doxyfile
92 if HAVE_DOXYGEN
93         @echo "Running doxygen..."
94         @doxygen
95 if HAVE_XSLTPROC
96         @echo "Generating devhelp index..."
97         @xsltproc $(top_srcdir)/doxy2devhelp.xsl doc/xml/index.xml > doc/html/pidgin.devhelp
98         @echo "(Symlink doc/html to ~/.local/share/gtk-doc/html/pidgin to make devhelp see the documentation)"
99 else
100         @echo "Not generating devhelp index: xsltproc was not found by configure"
101 endif
102 else
103         @echo "doxygen was not found during configure.  Unable to build documentation."
104         @echo;
105 endif
107 # perl's MakeMaker uninstall foo doesn't work well with DESTDIR set, which
108 # breaks "make distcheck" unless we ignore perl things
110 distuninstallcheck_listfiles = \
111         find . -type f -print | grep -v perl | grep -v Purple.3pm
113 DISTCLEANFILES= pidgin.desktop libpurple/gconf/purple.schemas intltool-extract \
114                         intltool-merge intltool-update