4 # Purpose: Makefile for the uffi package
5 # Programer: Kevin M. Rosenberg, M.D.
6 # Date Started: Mar 2002
8 # CVS Id: $Id: Makefile,v 1.41 2002/04/28 02:28:45 kevin Exp $
10 # This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
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.
17 SUBDIRS:= examples src
20 include Makefile.common
32 VERSION=$(shell cat VERSION)
33 DISTDIR=$(PKG)-$(VERSION)
34 DIST_TARBALL=$(DISTDIR).tar.gz
35 DIST_ZIP=$(DISTDIR).zip
36 SOURCE_FILES=src doc examples Makefile uffi.system COPYRIGHT README TODO \
37 INSTALL uffi.lsm ChangeLog NEWS test-examples.cl set-logical.cl \
39 VERSION_UNDERSCORE=$(shell cat VERSION | tr . _)
40 TAG=dist_$(VERSION_UNDERSCORE)
44 @cvs -q rtag -d $(TAG) $(PKG) > /dev/null
45 @cvs -q tag -F $(TAG) > /dev/null
50 @rm -rf $(DISTDIR) $(DIST_TARBALL) $(DIST_ZIP)
52 @cp -a $(SOURCE_FILES) $(DISTDIR)
53 @find $(DISTDIR) -type d -name CVS |xargs rm -rf
54 @find $(DISTDIR) -type f -name .cvsignore -exec rm {} \;
55 @find $(DISTDIR)/doc -type f -name \*.tex -or -name \*.aux -or \
56 -name \*.log -or -name \*.out -or -name \*.dvi -or \
57 -name \*~ -or -name \*.ps -exec rm {} \;
58 @tar czf $(DIST_TARBALL) $(DISTDIR)
59 @find $(DISTDIR) -type f -and -name \*.cl -or -name \*.list -or \
60 -name \*.system -or -name Makefile -or -name ChangeLog -or \
61 -name COPYRIGHT -or -name TODO -or -name README -or -name INSTALL \
62 -or -name NEWS -or -name \*.sgml -or -name COPYING\* -or -name catalog \
64 @zip -rq $(DIST_ZIP) $(DISTDIR)
74 @echo tagging with frozen tag
75 cvs -q rtag -d frozen uffi
76 cvs -q tag -F frozen .