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.11 2002/03/11 18:00:57 kevin Exp $
10 # Copyright (c) 2002 by Kevin M. Rosenberg
12 # This file is part of UFFI.
14 # UFFI is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License (version 2) as
16 # published by the Free Software Foundation.
18 # UFFI is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
23 # You should have received a copy of the GNU General Public License
24 # along with UFFI; if not, write to the Free Software Foundation, Inc.,
25 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 @rm -f uffi-*.tar.gz uffi-*.zip
33 @find . -type f -name \*.fasl -exec rm {} \;
34 @find . -type f -name \*.fsl -exec rm {} \;
35 @find . -type d -name .bin |xargs rm -rf
38 @find . -type f -name \*~ -exec rm {} \;
39 @find . -type f -name "#*#" -exec rm {} \;
42 @(cd doc; make dist-doc)
45 DISTDIR=uffi-${VERSION}
46 DIST_TARBALL=${DISTDIR}.tar.gz
47 DIST_ZIP=${DISTDIR}.zip
48 SOURCE_FILES=src doc examples Makefile COPYING COPYRIGHT README \
49 INSTALL uffi.lsm ChangeLog NEWS test-examples.cl set-logical.cl
52 @rm -fr ${DISTDIR} ${DIST_TARBALL} ${DIST_ZIP}
54 @cp -a ${SOURCE_FILES} ${DISTDIR}
55 @find ${DISTDIR} -type d -name CVS |xargs rm -rf
56 @tar czf ${DIST_TARBALL} ${DISTDIR}
57 @find ${DISTDIR} -type f -exec unix2dos -q {} \;
58 @zip -rq ${DIST_ZIP} ${DISTDIR}
61 FTP_DIR=/home/ftp/pub/uffi
64 @cp ${DIST_TARBALL} ${DIST_ZIP} ${FTP_DIR}