X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Makefile.am;h=2ce4185ca0c7f52af5269093b720fda3f400d69a;hb=b1a03904003733d21bf579e37316cc2906eb7e49;hp=42e7b2b05df56bcbdbfdc2e6aa07c0b868497a3c;hpb=46974bb948c0a7ca82b476a578b6199e438bab41;p=rodin%2Fchimara.git diff --git a/Makefile.am b/Makefile.am old mode 100755 new mode 100644 index 42e7b2b..2ce4185 --- a/Makefile.am +++ b/Makefile.am @@ -1,10 +1,10 @@ ## Process this file with automake to produce Makefile.in ## Created by Anjuta -SUBDIRS = src po +SUBDIRS = libchimara interpreters tests docs po chimaradocdir = ${prefix}/doc/chimara -chimaradoc_DATA = \ +dist_chimaradoc_DATA = \ README\ COPYING\ AUTHORS\ @@ -12,13 +12,27 @@ chimaradoc_DATA = \ INSTALL\ NEWS -EXTRA_DIST = $(chimaradoc_DATA) +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 = 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