4 # Purpose: Makefile for the CLSQL package
5 # Programer: Kevin M. Rosenberg
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.8 2002/04/07 03:57:35 kevin Exp $
10 # This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
12 # CLSQL users are granted the rights to distribute and use this software
13 # as governed by the terms of the Lisp Lesser GNU Public License
14 # (http://opensource.franz.com/preamble.html), also known as the LLGPL.
21 (cd interfaces/mysql; make)
22 (cd interfaces/clsql-uffi; make)
25 @rm -f $(PKG)-*.tar.gz $(PKG)-*.zip
26 @find . -type d -name .bin |xargs rm -rf
27 @find . -type f -name \*.a -or -name \*.so |xargs rm -rf
30 @find . -type f -name "#*" -or -name \*~ -exec rm {} \;
33 @(cd doc; make dist-doc)
35 VERSION=$(shell cat VERSION)
36 DISTDIR=$(PKG)-$(VERSION)
37 DIST_TARBALL=$(DISTDIR).tar.gz
38 DIST_ZIP=$(DISTDIR).zip
39 SOURCE_FILES=interfaces sql cmucl-compat doc test-suite Makefile VERSION \
40 COPYING.CLSQL COPYING.MaiSQL README INSTALL ChangeLog NEWS TODO \
41 set-logical.cl clsql-uffi.system \
42 clsql.system clsql-aodbc.system clsql-mysql.system \
43 clsql-postgresql.system clsql-postgresql-socket.system
45 VERSION_UNDERSCORE=$(shell cat VERSION | tr . _)
46 TAG=dist_$(VERSION_UNDERSCORE)
49 cvs -q rtag -d $(TAG) $(PKG)
52 dist: realclean docs tagcvs
53 @rm -fr $(DISTDIR) $(DIST_TARBALL) $(DIST_ZIP)
55 @cp -a $(SOURCE_FILES) $(DISTDIR)
56 @find $(DISTDIR) -type d -name CVS | xargs rm -r
57 @find $(DISTDIR) -type f -name .cvsignore -exec rm {} \;
58 @find $(DISTDIR) -type f -and -name \*.tex -or -name \*.aux -or \
59 -name \*.log -or -name \*.out -or -name \*.dvi -or \
60 -name \*~ -or -name \*.ps -or -name test.config | xargs rm -f
61 @tar czf $(DIST_TARBALL) $(DISTDIR)
62 @find $(DISTDIR) -type f -name \*.cl -or -name \*.list -or \
63 -name \*.system -or -name Makefile -or -name ChangeLog -or \
64 -name COPYRIGHT -or -name TODO -or -name README -or -name INSTALL \
65 -or -name NEWS -or -name \*.sgml -or -name COPYING\* -or -name catalog \
67 @zip -rq $(DIST_ZIP) $(DISTDIR)