r1824: *** empty log message ***
[uffi.git] / Makefile
1 # FILE IDENTIFICATION
2
3 #  Name:         Makefile
4 #  Purpose:      Makefile for the uffi package
5 #  Programer:    Kevin M. Rosenberg, M.D.
6 #  Date Started: Mar 2002
7 #
8 #  CVS Id:   $Id: Makefile,v 1.47 2002/04/28 09:59:07 kevin Exp $
9 #
10 # This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
11 #
12 # UFFI 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:=uffi
17 DEBPKG=cl-uffi
18 SUBDIRS:= examples src benchmarks
19 DOCSUBDIRS:=doc
20
21 include Makefile.common
22
23
24 .PHONY: all
25 all: 
26
27
28 .PHONY: distclean
29 distclean: clean
30         @$(MAKE) -C doc $@
31 #       ./debian/rules clean
32
33
34 VERSION=$(shell cat VERSION)
35 PKGNAME=$(PKG)-$(VERSION)
36 DISTDIR=$(PKGNAME)
37 DIST_TARBALL=$(PKGNAME).tar.gz
38 DIST_ORIG_TARBALL=$(PKGNAME).orig.tar.gz
39 DIST_ZIP=$(PKGNAME).zip
40 SOURCE_FILES=src doc examples Makefile uffi.system benchmarks COPYRIGHT README \
41          TODO INSTALL uffi.lsm ChangeLog NEWS test-examples.cl set-logical.cl 
42
43 VERSION_UNDERSCORE=$(shell cat VERSION | tr . _)
44 TAG=upstream_version_$(VERSION_UNDERSCORE)
45
46 .PHONY: tagcvs
47 tagcvs:
48         @cvs -q rtag -d $(TAG) $(PKG) > /dev/null
49         @cvs -q tag -F $(TAG) > /dev/null
50
51 .PHONY: doc
52 doc:
53         $(MAKE) -C doc
54
55 .PHONY: dist
56 dist: clean
57         $(MAKE) -C doc $@
58         @./make-dist.sh
59
60 .PHONY: wwwdist
61 wwwdist: dist
62         @./copy
63
64
65 .PHONY: freeze
66 freeze:
67         @echo tagging with frozen tag
68         cvs -q rtag -d frozen uffi
69         cvs -q tag -F frozen .
70
71 .PHONY: cleandists
72 cleandists:
73         @rm -rf ../${PKG}-*.tar.gz ../${PKG}-*.zip
74         @rm -rf ../$(DEBPKG)_*gz ../${DEBPKG}*.changes ../${DEBPKG}*.deb ../${DEBPKG}*.dsc
75