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.31 2002/04/06 19:23:04 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.
22 @rm -f uffi-*.tar.gz uffi-*.zip
23 @find . -type d -name .bin |xargs rm -rf
26 @find . -type f -name "#*" -or -name \*~ -exec rm {} \;
29 @(cd doc; make dist-doc)
31 VERSION=$(shell cat VERSION)
32 DISTDIR=uffi-$(VERSION)
33 DIST_TARBALL=$(DISTDIR).tar.gz
34 DIST_ZIP=$(DISTDIR).zip
35 SOURCE_FILES=src doc examples Makefile uffi.system COPYRIGHT README TODO \
36 INSTALL uffi.lsm ChangeLog NEWS test-examples.cl set-logical.cl \
40 @rm -rf $(DISTDIR) $(DIST_TARBALL) $(DIST_ZIP)
42 @cp -a $(SOURCE_FILES) $(DISTDIR)
43 @find $(DISTDIR) -type d -name CVS |xargs rm -rf
44 @find $(DISTDIR) -type f -name .cvsignore -exec rm {} \;
45 @find $(DISTDIR)/doc -type f -name \*.tex -or -name \*.aux -or \
46 -name \*.log -or -name \*.out -or -name \*.dvi -or \
47 -name \*~ -or -name \*.ps -exec rm {} \;
48 @tar czf $(DIST_TARBALL) $(DISTDIR)
49 @find $(DISTDIR) -type f -and -name \*.cl -or -name \*.list -or \
50 -name \*.system -or -name Makefile -or -name ChangeLog -or \
51 -name COPYRIGHT -or -name TODO -or -name README -or -name INSTALL \
52 -or -name NEWS -or -name \*.sgml -or -name COPYING\* -or -name catalog \
54 @zip -rq $(DIST_ZIP) $(DISTDIR)