15 gaim-uninstalled.pc.in \
25 noinst_HEADERS = config.h package_revision.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
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)
37 # Ensure these files are sorted and contain no duplicates:
38 LC_ALL=C sort -c -t/ -u po/POTFILES.in
39 LC_ALL=C sort -c -t/ -u po/POTFILES.skip
41 # Ensure COPYRIGHT is 100% UTF-8
42 iconv -f utf8 -t utf8 COPYRIGHT | cmp COPYRIGHT -
45 # Ensure our version string does not contain "dev"
46 test x`echo $(PACKAGE_VERSION) | grep dev` = x
48 # Ensure ChangeLogs have the correct version
49 head ChangeLog | grep "^version $(PACKAGE_VERSION) (.*):$$" >/dev/null
50 head ChangeLog.API | grep "^version $(PACKAGE_VERSION):$$" >/dev/null
52 # Ensure we're working from a tag...
53 test x`hg log -r "tag($(PACKAGE_VERSION))" --template "{node}"` = x`hg log -r . -T '{node}'`
54 # ... and have no changes in the working copy.
55 test "x`hg st -mard`" = x
58 gpg -ab pidgin-$(PACKAGE_VERSION).tar.gz
59 gpg -ab pidgin-$(PACKAGE_VERSION).tar.bz2
60 gpg --verify pidgin-$(PACKAGE_VERSION).tar.gz.asc pidgin-$(PACKAGE_VERSION).tar.gz
61 gpg --verify pidgin-$(PACKAGE_VERSION).tar.bz2.asc pidgin-$(PACKAGE_VERSION).tar.bz2
63 release: commit-check version-check distcheck sign-packages
77 # We always try to rebuild all objects that depends on this dummy target.
80 # if both attempts fail, then we need to remove the empty file that >
81 # creates, and also make sure that the shell command exits
82 # successfully; the rm -f ensures both
83 package_revision_raw.txt: .FORCE
84 $(AM_V_GEN)REAL_BLDDIR=$$PWD/$(top_builddir); \
85 (hg --cwd $(srcdir) log -r . -T {node}) 2>/dev/null >$@.new \
87 $(AM_V_at)if test -f $@.new; then \
88 if ! diff $@ $@.new > /dev/null; then \
94 package_revision.h: package_revision_raw.txt
95 $(AM_V_GEN)if test -f $<; then \
96 echo "#define REVISION \"`cat $<`\"" > $@; \
98 $(AM_V_at)if test ! -f $@ -a -f $(srcdir)/$@; then \
101 $(AM_V_at)test -f $@ || echo "#define REVISION \"unknown\"" > $@
103 # This is a magic directive copy-and-pasted, then modified, from the
104 # automake 1.9 manual, section 13.4, "Checking the distribution".
105 # Normally, 'distcheck' does a clean build, and then afterwards runs
106 # 'distclean', and 'distclean' is supposed to remove everything that
107 # the build created. However, we have some targets (package_revision.txt)
108 # that we distribute, but then always attempt to rebuild optimistically, and
109 # then if that fails fall back on the distributed versions. This
110 # means that 'distclean' should _not_ remove those files, since they
111 # are distributed, yet building the package will generate those files,
112 # thus automake thinks that 'distclean' _should_ remove those files,
113 # and 'distcheck' gets cranky if we don't. So basically what this
114 # line does is tell 'distcheck' to shut up and ignore those two files.
115 distcleancheck_listfiles = find . -type f -a ! -name package_revision.h
117 SUBDIRS = . libpurple doc $(GNT_DIR) $(GTK_DIR) m4macros $(PO_DIR) share/ca-certs share/sounds
121 @echo "Running doxygen..."
124 @echo "Generating devhelp index..."
125 @xsltproc $(top_srcdir)/doxy2devhelp.xsl doc/xml/index.xml > doc/html/pidgin.devhelp
126 @echo "(Symlink $$(pwd)/doc/html to ~/.local/share/gtk-doc/html/pidgin to make devhelp see the documentation)"
128 @echo "Not generating devhelp index: xsltproc was not found by configure"
131 @echo "doxygen was not found during configure. Unable to build documentation."
135 # perl's MakeMaker uninstall foo doesn't work well with DESTDIR set, which
136 # breaks "make distcheck" unless we ignore perl things
137 # TODO drop it when we drop perl wrapper
139 distuninstallcheck_listfiles = \
140 find . -type f -print | grep -v perl | grep -v Purple.3pm | grep -v Pidgin.3pm
142 DISTCLEANFILES= intltool-extract intltool-merge intltool-update \
143 package_revision_raw.txt