r1546: *** 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.11 2002/03/11 18:00:57 kevin Exp $
9 #
10 #  Copyright (c) 2002 by Kevin M. Rosenberg
11 #
12 #  This file is part of UFFI.
13 #
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.
17 #
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.
22 #
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
26
27 all: nothing
28
29 nothing:
30
31 clean:
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 
36
37 realclean: clean
38         @find . -type f -name \*~ -exec rm {} \;
39         @find . -type f -name "#*#" -exec rm {} \;
40
41 docs:
42         @(cd doc; make dist-doc)
43
44 VERSION=0.2.3
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
50
51 dist: realclean docs
52         @rm -fr ${DISTDIR} ${DIST_TARBALL} ${DIST_ZIP}
53         @mkdir ${DISTDIR}
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}
59         @rm -r ${DISTDIR}
60
61 FTP_DIR=/home/ftp/pub/uffi
62
63 dist-to-ftp: dist
64         @cp ${DIST_TARBALL} ${DIST_ZIP} ${FTP_DIR}