r2007: *** empty log message ***
[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.18 2002/05/13 03:24:41 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 PKG:=clsql
17 DEBPKG=cl-sql
18 SUBDIRS:=interfaces sql cmucl-compat
19 DOCSUBDIRS:=doc
20
21 include Makefile.common
22
23 LIBSUBDIRS=interfaces/mysql interfaces/clsql-uffi
24 .PHONY: subdirs $(LIBSUBDIRS)
25
26 .PHONY: all
27 all: $(LIBSUBDIRS)
28
29 $(LIBSUBDIRS):
30         $(MAKE) -C $@
31
32 .PHONY: distclean
33 distclean: clean
34         @$(MAKE) -C doc $@
35
36 VERSION=$(shell cat VERSION)
37 DISTDIR=$(PKG)-$(VERSION)
38 DIST_TARBALL=$(DISTDIR).tar.gz
39 DIST_ZIP=$(DISTDIR).zip
40 SOURCE_FILES=interfaces sql cmucl-compat doc test-suite Makefile VERSION \
41         COPYING.CLSQL COPYING.MaiSQL README INSTALL ChangeLog NEWS TODO \
42         set-logical.cl clsql-uffi.system \
43         clsql.system clsql-aodbc.system clsql-mysql.system \
44         clsql-postgresql.system clsql-postgresql-socket.system
45
46 VERSION_UNDERSCORE=$(shell cat VERSION | tr . _)
47 TAG=dist_$(VERSION_UNDERSCORE)
48
49 .PHONY: doc
50 doc:
51         $(MAKE) -C doc
52
53 .PHONY:dist
54 dist: clean
55         @$(MAKE) -C doc $@
56