X-Git-Url: https://git.stderr.nl/gitweb?p=rodin%2Fchimara.git;a=blobdiff_plain;f=Makefile.am;h=846e0539bbdc923f834dd8e810da09f4806213e2;hp=4a87cfd403a210164f2f9b089d7529970976acb8;hb=17139812a5057981d2b7a0d171b679449717fdf4;hpb=062bbb9e7322c8e3f5162f86fc2f93bfc587b830 diff --git a/Makefile.am b/Makefile.am index 4a87cfd..846e053 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,28 +1,37 @@ ## Process this file with automake to produce Makefile.in ## Created by Anjuta -SUBDIRS = src po docs +SUBDIRS = libchimara interpreters tests docs po player -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 = intltool-extract.in intltool-merge.in intltool-update.in \ + 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 \ + intltool-extract intltool-merge intltool-update + +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