Set version, soname ahead of release.
[ginac.git] / Makefile.am
index 6470f546911d9a2c36f1284220e6bc3b1a49e447..950d12d5365a00c175991d20f3fb141dc1b1d418 100644 (file)
@@ -1,23 +1,32 @@
 ## Process this file with automake to produce Makefile.in
 ## Process this file with automake to produce Makefile.in
-SUBDIRS = @GINACCINTDIR@ ginac check ginsh tools doc
+SUBDIRS = ginac check ginsh tools doc
+DIST_SUBDIRS = ginac check ginsh tools doc
 
 
-# Requires automake 1.4
-AUTOMAKE_OPTIONS = 1.4
+# pkg-config metadata
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = ginac.pc
+$(pkgconfig_DATA): config.status
 
 
-# GiNaC runtime configuration script
-bin_SCRIPTS = ginac-config
+CMAKE_FILES = CMakeLists.txt \
+             ginac.pc.cmake \
+             config.cmake.in \
+             INSTALL.CMake \
+             cmake/ginac-config.cmake.in \
+             cmake/modules/FindCLN.cmake \
+             cmake/modules/FindReadline.cmake \
+             cmake/modules/FindGiNaC.cmake \
+             cmake/modules/FindLibDL.cmake
 
 
-# All the rest of the distributed files
-EXTRA_DIST = autogen.sh ginac.m4
+BUILD_HELPERS = scripts/yaptu.py scripts/fixupind.py
 
 
-# M4 macro file for inclusion with autoconf
-m4datadir = $(datadir)/aclocal
-m4data_DATA = ginac.m4
+# All the rest of the distributed files
+EXTRA_DIST = ginac.pc GiNaC.spec $(BUILD_HELPERS) $(CMAKE_FILES)
 
 
-# Rule to build tar-gzipped distribution package
+# Rule to build tar-bzipped distribution package
 $(PACKAGE)-$(VERSION).tar.gz: dist
 
 # Rule to build RPM distribution package
 rpm: $(PACKAGE)-$(VERSION).tar.gz
 $(PACKAGE)-$(VERSION).tar.gz: dist
 
 # Rule to build RPM distribution package
 rpm: $(PACKAGE)-$(VERSION).tar.gz
-       cp $(PACKAGE)-$(VERSRION).tar.gz /usr/src/redhat/SOURCES
-       rpm -ba GiNaC.spec
+       rpmbuild -ta --clean $(PACKAGE)-$(VERSION).tar.gz
+
+ACLOCAL_AMFLAGS = -I m4