## Process this file with automake to produce Makefile.in
## Created by Anjuta
-SUBDIRS = src po docs
+if TARGET_ILIAD
+SUBDIRS = libchimara interpreters player po
+else
+SUBDIRS = libchimara interpreters player tests docs po
+endif
-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
-DISTCLEANFILES = intltool-extract intltool-merge intltool-update
+DISTCLEANFILES = chimara.pc chimara-plugin.pc chimara.spec
+
+ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+
+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