X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Makefile.am;h=2ce4185ca0c7f52af5269093b720fda3f400d69a;hb=8ef6e816ba9c55188181a00ae23b181bb09c5526;hp=c03385dd2016b917873da0c64ea56820c135f7d8;hpb=24aef54d7203143092c9a7c91096c54494590851;p=rodin%2Fchimara.git diff --git a/Makefile.am b/Makefile.am index c03385d..2ce4185 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in ## Created by Anjuta -SUBDIRS = src po docs +SUBDIRS = libchimara interpreters tests docs po chimaradocdir = ${prefix}/doc/chimara dist_chimaradoc_DATA = \ @@ -16,8 +16,23 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = chimara.pc chimara-plugin.pc EXTRA_DIST = intltool-extract.in intltool-merge.in intltool-update.in \ - chimara.pc.in chimara-plugin.pc.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 \ No newline at end of file