2006-01-13 [paul] 1.9.100cvs142
[claws.git] / Makefile.am
index 2466c620f9c442bb873b3896aa2e4ecd8f45cf40..031814ad4e99a8f3709a4e7c5b468f1894a76c9b 100644 (file)
@@ -1,40 +1,56 @@
-SUBDIRS = ac po intl libkcc src man manual faq tools
+ACLOCAL_AMFLAGS = -I m4
+AUTOMAKE_OPTIONS = dist-bzip2
+
+if PLATFORM_WIN32
+tools = 
+else
+tools = tools
+endif
+
+SUBDIRS = m4 po src $(tools) config doc
 
 EXTRA_DIST = \
-       ChangeLog.jp \
-       INSTALL.jp \
-       README.jp \
-       ChangeLog.claws \
-       README.claws \
-       README.README \
-       TODO.jp \
-       sylpheed.desktop \
-       sylpheed.spec \
-       sylpheed.spec.in \
-       sylpheed.png \
-       sylpheed-128x128.png \
-       sylpheed-64x64.png \
-       autogen.sh 
+       ChangeLog \
+       ChangeLog.gtk1 \
+       RELEASE_NOTES \
+       sylpheed-claws-128x128.png \
+       sylpheed-claws-64x64.png \
+       sylpheed-claws.pc.in \
+       sylpheed-claws.desktop \
+       sylpheed-claws.png \
+       autogen.sh
 
+if SYLPHEED_GNOME2
+# hicolor icon theme, base class of all icon themes
+pixmapdir=$(datadir)/icons/hicolor/48x48/apps
+pixmap_DATA=sylpheed-claws.png
+gnomapdir = $(datadir)/applications
+gnomap_DATA=sylpheed-claws.desktop
+else
 if SYLPHEED_GNOME
-pixmapdir=$(gnomedir)/share/pixmaps
-pixmap_DATA=sylpheed.png
-gnomapdir=$(gnomedir)/share/gnome/apps/Internet
-gnomap_DATA=sylpheed.desktop
+pixmapdir=$(gnomedatadir)/pixmaps
+pixmap_DATA=sylpheed-claws.png
+gnomapdir=$(gnomedatadir)/gnome/apps/Internet
+gnomap_DATA=sylpheed-claws.desktop
 else
 pixmapdir=
 pixmap_DATA=
 gnomapdir=
 gnomap_DATA=
 endif
+endif
 
 BZIP2_ENV =
 
 release: distdir
        -chmod -R a+r $(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)
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = sylpheed-claws.pc
+
+sylpheedincludedir = $(pkgincludedir)
+sylpheedinclude_HEADERS = \
+       config.h