git: Line endings of README.txt
[projects/chimara/chimara.git] / Makefile.am
old mode 100755 (executable)
new mode 100644 (file)
index d4c356b..b7200b6
@@ -1,26 +1,53 @@
 ## Process this file with automake to produce Makefile.in
 ## Created by Anjuta
 
-SUBDIRS = src po
+SUBDIRS = libchimara interpreters player tests docs po
 
-chimaradocdir = ${prefix}/doc/chimara
-chimaradoc_DATA = \
+chimaradocdir = $(datadir)/doc/chimara
+dist_chimaradoc_DATA = \
        README\
        COPYING\
        AUTHORS\
        ChangeLog\
-       INSTALL\
        NEWS
 
-EXTRA_DIST = $(chimaradoc_DATA) \
-       intltool-extract.in intltool-merge.in intltool-update.in
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = chimara.pc chimara-plugin.pc
 
-# Copy all the spec files. Of cource, only one is actually used.
-dist-hook:
-       for specfile in *.spec; do \
-               if test -f $$specfile; then \
-                       cp -p $$specfile $(distdir); \
-               fi \
-       done
+EXTRA_DIST = \
+       chimara.pc.in
+       chimara-plugin.pc.in
+       chimara.spec.in
+       m4/introspection.m4
 
-DISTCLEANFILES = intltool-extract intltool-merge intltool-update
+DISTCLEANFILES = chimara.pc chimara-plugin.pc chimara.spec
+
+macros_ignore = codeset gettext glibc2 glibc21 gtk-doc iconv intdiv0 intl \
+       intldir intlmacosx intltool intmax inttypes_h inttypes-pri lcmessage \
+       lib-ld lib-link lib-prefix libtool lock longlong lt~obsolete ltoptions \
+       ltsugar ltversion nls po printf-posix progtest size_max stdint_h uintmax_t \
+       visibility wchar_t wint_t xsize
+
+MAINTAINERCLEANFILES = ABOUT-NLS INSTALL aclocal.m4 compile config.guess \
+       config.h.in config.rpath config.sub depcomp gtk-doc.make install-sh \
+       intltool-extract.in intltool-merge.in intltool-update.in ltmain.sh missing \
+       ylwrap autom4te.cache test-driver \
+       $(addprefix 'm4/',$(addsuffix '.m4', $(macros_ignore)))
+
+ACLOCAL_AMFLAGS = -I m4
+
+DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection
+
+if BUILDING_RPM
+EXTRA_DIST += chimara.spec
+rpm: chimara.spec dist
+       $(ECHO) "Building RPM package..."; \
+       $(RPMBUILD) -ta --clean $(PACKAGE)-$(VERSION).tar.gz
+else
+rpm:
+       @$(ECHO) \
+       "To build an RPM package, you must run configure with --enable-rpm."; \
+       exit 1
+endif
+
+-include $(top_srcdir)/git.mk