15 gaim-uninstalled.pc.in \
26 noinst_HEADERS = config.h package_revision.h
28 dist-hook: pidgin.spec
29 cp pidgin.spec $(distdir)
30 rm $(distdir)/config.h
32 distcheck-hook: libpurple/plugins/perl/common/Purple.pm pidgin/plugins/perl/common/Pidgin.pm
33 # cp libpurple/plugins/perl/common/Gaim.pm $(distdir)/libpurple/plugins/perl/common
36 (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)
38 # Ensure these files are sorted and contain no duplicates:
39 LC_ALL=C sort -c -t/ -u po/POTFILES.in
40 LC_ALL=C sort -c -t/ -u po/POTFILES.skip
42 # Ensure COPYRIGHT is 100% UTF-8
43 iconv -f utf8 -t utf8 COPYRIGHT | cmp COPYRIGHT -
46 # Ensure our version string does not contain "dev"
47 test x`echo $(PACKAGE_VERSION) | grep dev` = x
49 # Ensure ChangeLogs have the correct version
50 head ChangeLog | grep "^version $(PACKAGE_VERSION) (.*):$$" >/dev/null
51 head ChangeLog.API | grep "^version $(PACKAGE_VERSION):$$" >/dev/null
52 head po/ChangeLog | grep "^version $(PACKAGE_VERSION)$$" >/dev/null
54 # Ensure we're working from a tag...
55 test x`hg log -r "tag($(PACKAGE_VERSION))" --template "{node}"` = x`hg id -i --debug`
56 # ... and have no changes in the working copy. (this isn't really necessary with hg because hg id appends a "+")
57 test "x`hg st -mard`" = x
60 gpg -ab pidgin-$(PACKAGE_VERSION).tar.gz
61 gpg -ab pidgin-$(PACKAGE_VERSION).tar.bz2
62 gpg --verify pidgin-$(PACKAGE_VERSION).tar.gz.asc pidgin-$(PACKAGE_VERSION).tar.gz
63 gpg --verify pidgin-$(PACKAGE_VERSION).tar.bz2.asc pidgin-$(PACKAGE_VERSION).tar.bz2
65 release: commit-check version-check distcheck packages
69 DESKTOP_FILE=pidgin.desktop
72 appsdir = $(datadir)/applications
73 apps_in_files = pidgin.desktop.in
74 apps_DATA = $(apps_in_files:.desktop.in=.desktop)
75 @INTLTOOL_DESKTOP_RULE@
88 # This is phony, so that we always try to rebuild it. If it succeeds
89 # in calculating changes, it produces its target; otherwise, its
90 # target does not exist.
91 .PHONY: package_revision_raw.txt
92 # if both attempts fail, then we need to remove the empty file that >
93 # creates, and also make sure that the shell command exits
94 # successfully; the rm -f ensures both
95 package_revision_raw.txt:
96 $(AM_V_GEN)REAL_BLDDIR=$$PWD/$(top_builddir); \
97 (hg --cwd $(srcdir) id -i --debug) 2>/dev/null >$@ \
99 package_revision.h: package_revision_raw.txt
100 $(AM_V_GEN)if test -f $<; then \
101 echo "#define REVISION \"`cat $<`\"" > $@; \
103 $(AM_V_at)if test ! -f $@ -a -f $(srcdir)/$@; then \
104 cp $(srcdir)/$@ $@; \
106 $(AM_V_at)test -f $@ || echo "#define REVISION \"unknown\"" > $@
108 # This is a magic directive copy-and-pasted, then modified, from the
109 # automake 1.9 manual, section 13.4, "Checking the distribution".
110 # Normally, 'distcheck' does a clean build, and then afterwards runs
111 # 'distclean', and 'distclean' is supposed to remove everything that
112 # the build created. However, we have some targets (package_revision.txt)
113 # that we distribute, but then always attempt to rebuild optimistically, and
114 # then if that fails fall back on the distributed versions. This
115 # means that 'distclean' should _not_ remove those files, since they
116 # are distributed, yet building the package will generate those files,
117 # thus automake thinks that 'distclean' _should_ remove those files,
118 # and 'distcheck' gets cranky if we don't. So basically what this
119 # line does is tell 'distcheck' to shut up and ignore those two files.
120 distcleancheck_listfiles = find . -type f -a ! -name package_revision.h
122 SUBDIRS = . libpurple doc $(GNT_DIR) $(GTK_DIR) m4macros $(PO_DIR) share/ca-certs share/sounds
126 @echo "Running doxygen..."
129 @echo "Generating devhelp index..."
130 @xsltproc $(top_srcdir)/doxy2devhelp.xsl doc/xml/index.xml > doc/html/pidgin.devhelp
131 @echo "(Symlink $$(pwd)/doc/html to ~/.local/share/gtk-doc/html/pidgin to make devhelp see the documentation)"
133 @echo "Not generating devhelp index: xsltproc was not found by configure"
136 @echo "doxygen was not found during configure. Unable to build documentation."
140 # perl's MakeMaker uninstall foo doesn't work well with DESTDIR set, which
141 # breaks "make distcheck" unless we ignore perl things
143 distuninstallcheck_listfiles = \
144 find . -type f -print | grep -v perl | grep -v Purple.3pm
146 DISTCLEANFILES= $(DESKTOP_FILE) libpurple/gconf/purple.schemas intltool-extract \
147 intltool-merge intltool-update