X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Makefile.am;h=445af84942ded4cbf521a03f9f753ca2c71133ec;hb=40c961bdf2523ebdcb6717f2537f97156fd19ab4;hp=d4c356bcb3d201956c29270221adcecdc7b87c58;hpb=85d4a577410f0bffec48cd54d2a55e37a718d176;p=rodin%2Fchimara.git diff --git a/Makefile.am b/Makefile.am old mode 100755 new mode 100644 index d4c356b..445af84 --- a/Makefile.am +++ b/Makefile.am @@ -1,26 +1,35 @@ ## 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 -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