r1573: *** 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.15 2002/03/15 11:38:13 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
17 all: nothing
18
19 nothing:
20
21 clean:
22         @rm -f uffi-*.tar.gz uffi-*.zip
23         @find . -type f -name \*.fasl -exec rm {} \;
24         @find . -type f -name \*.fsl -exec rm {} \;
25         @find . -type d -name .bin |xargs rm -rf 
26
27 realclean: clean
28         @find . -type f -name \*~ -exec rm {} \;
29         @find . -type f -name "#*#" -exec rm {} \;
30
31 docs:
32         @(cd doc; make dist-doc)
33
34 VERSION=0.2.6x
35 DISTDIR=uffi-${VERSION}
36 DIST_TARBALL=${DISTDIR}.tar.gz
37 DIST_ZIP=${DISTDIR}.zip
38 SOURCE_FILES=src doc examples Makefile uffi.system COPYRIGHT README \
39          INSTALL uffi.lsm ChangeLog NEWS test-examples.cl set-logical.cl
40
41 dist: realclean docs
42         @rm -fr ${DISTDIR} ${DIST_TARBALL} ${DIST_ZIP}
43         @mkdir ${DISTDIR}
44         @cp -a ${SOURCE_FILES} ${DISTDIR}
45         @find ${DISTDIR} -type d -name CVS |xargs rm -rf
46         @tar czf ${DIST_TARBALL} ${DISTDIR}
47         @find ${DISTDIR} -type f -exec unix2dos -q {} \;
48         @zip -rq ${DIST_ZIP} ${DISTDIR}
49         @rm -r ${DISTDIR}
50
51 FTP_DIR=/home/ftp/pub/uffi
52
53 dist-to-ftp: dist
54         @cp ${DIST_TARBALL} ${DIST_ZIP} ${FTP_DIR}