Distcheck fixes
[bug-buddy.git] / Makefile.am
blob1c00d0f27b62107c0a69277ada90374e75b467fd
1 SUBDIRS = po pixmaps src bugzilla docs
3 schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
4 schemas_in_files = bug-buddy.schemas.in
5 schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)
7 EXTRA_DIST = \
8         bug-buddy.spec.in                               \
9         bug-buddy.spec                                  \
10         gnome-doc-utils.make                            \
11         intltool-extract.in                             \
12         intltool-merge.in                               \
13         intltool-update.in                              \
14         COPYING.ximian-logos                            \
15         omf.make                                        \
16         xmldocs.make                                    \
17         $(schemas_in_files)                             \
18         $(schemas_DATA)
20 DISTCLEANFILES =                                        \
21         intltool-extract                                \
22         intltool-merge                                  \
23         intltool-update                                 \
24         gnome-doc-utils.make
26 DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
28 distuninstallcheck_listfiles =  \
29 find -regex '.*/var/scrollkeeper/.*' -prune -or -type f -print
31 if GCONF_SCHEMAS_INSTALL
32 install-data-local:
33         if test -z "$(DESTDIR)" ; then \
34                 for p in $(schemas_DATA) ; do \
35                         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
36                 done \
37         fi
38 else
39 install-data-local:
40 endif
45 # this should probably be run at dist time or something
46 update-bugzilla:
47         cd $(top_srcdir)/bugzilla/ximian/ \
48         && for file in products config mostfreq; do \
49                 wget "http://bugzilla.ximian.com/bugzilla-$$file.xml" -O $$file.tmp \
50                 && (cmp -s $$file.tmp $$file || cp -v $$file.tmp $$file) \
51                 && rm -f $$file.tmp; \
52         done
53         cd $(top_srcdir)/bugzilla/gnome/ \
54         && for file in products config mostfreq; do \
55                 wget "http://bugzilla.gnome.org/bugzilla.gnome.org/bugzilla-$$file.xml" -O $$file.tmp \
56                 && (cmp -s $$file.tmp $$file || cp -v $$file.tmp $$file) \
57                 && rm -f $$file.tmp; \
58         done