r1873: debian
[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.48 2002/05/03 03:53:10 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 uffi.debian.system \
41         benchmarks COPYRIGHT README TODO INSTALL ChangeLog NEWS \
42         test-examples.cl set-logical.cl 
43
44 VERSION_UNDERSCORE=$(shell cat VERSION | tr . _)
45 TAG=upstream_version_$(VERSION_UNDERSCORE)
46
47 .PHONY: tagcvs
48 tagcvs:
49         @cvs -q rtag -d $(TAG) $(PKG) > /dev/null
50         @cvs -q tag -F $(TAG) > /dev/null
51
52 .PHONY: doc
53 doc:
54         $(MAKE) -C doc
55
56 .PHONY: dist
57 dist: clean
58         $(MAKE) -C doc $@
59         @./make-dist.sh
60
61 .PHONY: wwwdist
62 wwwdist: dist
63         @./copy
64
65
66 .PHONY: freeze
67 freeze:
68         @echo tagging with frozen tag
69         cvs -q rtag -d frozen uffi
70         cvs -q tag -F frozen .
71
72 .PHONY: cleandists
73 cleandists:
74         @rm -rf ../${PKG}-*.tar.gz ../${PKG}-*.zip
75         @rm -rf ../$(DEBPKG)_*gz ../${DEBPKG}*.changes ../${DEBPKG}*.deb ../${DEBPKG}*.dsc
76