version 0.9.4claws
[claws.git] / Makefile.am
index 23a482d9b36aeef568e8fba38cf754938a55f413..26c4a0e8056f80c4846b5746317f04908da295b3 100644 (file)
@@ -1,18 +1,40 @@
-SUBDIRS = ac po intl libkcc src manual
+SUBDIRS = ac po intl src man manual faq tools config
 
 EXTRA_DIST = \
        ChangeLog.jp \
-       INSTALL.jp \
        README.jp \
+       ChangeLog.claws \
+       README.claws \
+       TODO \
+       TODO.claws \
        TODO.jp \
+       sylpheed.desktop \
        sylpheed.spec \
        sylpheed.spec.in \
-       autogen.sh
+       sylpheed.png \
+       sylpheed-128x128.png \
+       sylpheed-64x64.png \
+       autogen.sh 
+
+if SYLPHEED_GNOME
+pixmapdir=$(gnomedatadir)/pixmaps
+pixmap_DATA=sylpheed.png
+gnomapdir=$(gnomedatadir)/gnome/apps/Internet
+gnomap_DATA=sylpheed.desktop
+else
+pixmapdir=
+pixmap_DATA=
+gnomapdir=
+gnomap_DATA=
+endif
 
 BZIP2_ENV =
 
 release: distdir
        -chmod -R a+r $(distdir)
-       GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-       BZIP2=$(BZIP2_ENV) $(TAR) chojf $(distdir).tar.bz2 $(distdir)
+       GZIP=$(GZIP_ENV) $(AMTAR)$(TAR) chozf $(distdir).tar.gz $(distdir)
+       rm -f $(distdir)/sylpheed.spec
+       sed '/^Source:/s/\.tar\.gz$$/\.tar\.bz2/' sylpheed.spec \
+         > $(distdir)/sylpheed.spec
+       BZIP2=$(BZIP2_ENV) $(AMTAR)$(TAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
        -rm -rf $(distdir)