r1639: Initial revision
[clsql.git] / Makefile
1 # FILE IDENTIFICATION
2
3 #  Name:         Makefile
4 #  Purpose:      Makefile for the CLSQL package
5 #  Programer:    Kevin M. Rosenberg
6 #  Date Started: Mar 2002
7 #
8 #  CVS Id:   $Id: Makefile,v 1.1 2002/03/23 14:04:49 kevin Exp $
9 #
10 # This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
11 #
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.
15
16 PACKAGE=clsql
17
18 all: nothing
19
20 nothing:
21
22 clean:
23         @rm -f $(PACKAGE)-*.tar.gz $(PACKAGE)-*.zip
24         @find . -type d -name .bin |xargs rm -rf 
25
26 realclean: clean
27         @find . -type f -name \*~ -exec rm {} \;
28         @find . -type f -name "#*#" -exec rm {} \;
29
30 docs:
31         @(cd doc; make dist-doc)
32
33 VERSION=$(shell cat VERSION)
34 DISTDIR=$(PACKAGE)-$(VERSION)
35 DIST_TARBALL=$(DISTDIR).tar.gz
36 DIST_ZIP=$(DISTDIR).zip
37 SOURCE_FILES=interfaces sql cmucl-compat doc Makefile VERSION \
38         COPYING.CLSQL COPYING.MaiSQL README INSTALL ChangeLog NEWS TODO \
39         set-logical.cl test-clsql.cl \
40         clsql.system clsql-aodbc.system clsql-mysql.system \
41         clsql-postgresql.system clsql-postgresql-socket.system
42
43 dist: realclean docs
44         @rm -fr $(DISTDIR) $(DIST_TARBALL) $(DIST_ZIP)
45         @mkdir $(DISTDIR)
46         @cp -a $(SOURCE_FILES) $(DISTDIR)
47         @find $(DISTDIR) -type d -name CVS | xargs rm -r
48         @find $(DISTDIR) -type f -name .cvsignore -exec rm {} \;
49         @find $(DISTDIR)/doc -type f -name \*.tex -or -name \*.aux -or \
50                  -name \*.log -or -name \*.out -or -name \*.dvi -or \
51                  -name \*~ -or -name \*.ps -exec rm {} \;
52         @tar czf $(DIST_TARBALL) $(DISTDIR)
53         @find $(DISTDIR) -type f -exec unix2dos -q {} \;
54         @zip -rq $(DIST_ZIP) $(DISTDIR)
55         @rm -r $(DISTDIR)