# -*- Mode: Makefile -*-
# $Id: Makefile,v 1.13 2002/02/19 19:13:50 apharris Exp $

# Makefile for UncommonSQL

SUBDIRS		:= dbms sql
DOCSUBDIRS	:= doc

LISP		:= lisp

include Makefile.common

build:
	$(LISP) -batch -load makefile

.PHONY: install
install:
	install -g root -o root -m 0644 usql-library.x86f \
	$(DESTDIR)/usr/lib/cmucl/subsystems/usql-library.x86f

.PHONY: deploy
deploy: install

.PHONY: dist
dist:
	./make-dist.sh

.PHONY: wwwdist
wwwdist:
	@# subdirs not working
	@# set -e; for i in $(DOCSUBDIRS); do $(MAKE) -C $$i $@; done

.PHONY: freeze
freeze:
	@echo tagging with frozen tag
	cvs -q rtag -d frozen uncommonsql
	cvs -q tag -F frozen .

.PHONY: distclean
distclean: clean
	./debian/rules clean
	rm -f ChangeLog*
