From e952be87fd200033662d9cd5b4b274d687955698 Mon Sep 17 00:00:00 2001 From: js Date: Wed, 23 Jul 2008 00:05:23 +0000 Subject: [PATCH] Also install the mood icons. --- configure.ac | 7 ++++--- data/Makefile.am | 2 +- data/moods/Makefile.am | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 data/moods/Makefile.am diff --git a/configure.ac b/configure.ac index c7167beed..5039b59c2 100644 --- a/configure.ac +++ b/configure.ac @@ -227,13 +227,14 @@ AC_CONFIG_FILES([ data/emoticons/Makefile data/pixmaps/Makefile data/iconsets/Makefile + data/moods/Makefile data/gajim.desktop.in data/defs.py src/Makefile src/common/Makefile - src/osx/Makefile - src/osx/growl/Makefile - src/osx/syncmenu/Makefile + src/osx/Makefile + src/osx/growl/Makefile + src/osx/syncmenu/Makefile scripts/gajim scripts/gajim-remote po/Makefile.in diff --git a/data/Makefile.am b/data/Makefile.am index 7bca50fc1..af097a28b 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = glade emoticons pixmaps iconsets +SUBDIRS = glade emoticons pixmaps iconsets moods @INTLTOOL_DESKTOP_RULE@ desktopdir = $(datadir)/applications diff --git a/data/moods/Makefile.am b/data/moods/Makefile.am new file mode 100644 index 000000000..0caed1d81 --- /dev/null +++ b/data/moods/Makefile.am @@ -0,0 +1,38 @@ +moodsdir = $(pkgdatadir)/data/moods + +moods_DATA = + +MOODS_DIRS = ** + +MOODS_FILES = **/{*.png,*.gif} + + +install-data-local: + @for d in $$(cd $(srcdir); echo $(MOODS_DIRS));do \ + if test -d $(srcdir)/$$d;then \ + echo " $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/data/moods/$$d"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/data/moods/$$d || exit 1; \ + fi; \ + done; \ + for f in $$(cd $(srcdir); echo $(MOODS_FILES));do \ + if test -f $(srcdir)/$$f; then \ + echo " $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(pkgdatadir)/data/moods/$$f"; \ + $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(pkgdatadir)/data/moods/$$f || exit 1; \ + fi; \ + done; + +dist-hook: + @for d in $$(cd $(srcdir); echo $(MOODS_DIRS));do \ + if test -d $(srcdir)/$$d;then \ + echo " $(mkdir_p) $(distdir)/$$d"; \ + $(mkdir_p) $(distdir)/$$d || exit 1; \ + fi; \ + done; \ + for f in $$(cd $(srcdir); echo $(MOODS_FILES));do \ + if test -f $(srcdir)/$$f; then \ + echo " cp -pR $(srcdir)/$$f $(distdir)/$$f"; \ + cp -pR $(srcdir)/$$f $(distdir)/$$f || exit 1; \ + fi; \ + done; + +MAINTAINERCLEANFILES = Makefile.in