head	1.33;
access;
symbols;
locks; strict;
comment	@# @;


1.33
date	92.10.08.22.35.26;	author eeide;	state Exp;
branches;
next	1.32;

1.32
date	92.07.06.11.56.42;	author kessler;	state Exp;
branches;
next	1.31;

1.31
date	91.04.01.06.08.43;	author stoller;	state Exp;
branches;
next	1.30;

1.30
date	89.04.11.15.03.14;	author stoller;	state Exp;
branches;
next	1.29;

1.29
date	88.04.20.16.49.33;	author jed;	state Exp;
branches;
next	1.28;

1.28
date	88.04.20.16.10.18;	author jed;	state Exp;
branches;
next	1.27;

1.27
date	88.04.20.11.15.23;	author jed;	state Exp;
branches;
next	1.26;

1.26
date	88.04.08.10.47.17;	author kessler;	state Exp;
branches;
next	1.25;

1.25
date	88.03.31.19.00.04;	author jed;	state Exp;
branches;
next	1.24;

1.24
date	88.03.19.11.07.12;	author jed;	state Exp;
branches;
next	1.23;

1.23
date	88.02.24.20.41.03;	author jed;	state Exp;
branches;
next	1.22;

1.22
date	88.02.04.14.32.44;	author jed;	state Exp;
branches;
next	1.21;

1.21
date	88.02.04.11.36.16;	author steury;	state Exp;
branches;
next	1.20;

1.20
date	88.02.01.11.03.35;	author jed;	state Exp;
branches;
next	1.19;

1.19
date	88.02.01.10.53.34;	author muehle;	state Exp;
branches;
next	1.18;

1.18
date	88.01.06.19.40.17;	author jed;	state Exp;
branches;
next	1.17;

1.17
date	88.01.05.16.17.38;	author jed;	state Exp;
branches;
next	1.16;

1.16
date	88.01.05.11.14.27;	author jed;	state Exp;
branches;
next	1.15;

1.15
date	88.01.05.09.50.15;	author steury;	state Exp;
branches;
next	1.14;

1.14
date	87.12.09.14.21.58;	author jed;	state Exp;
branches;
next	1.13;

1.13
date	87.10.22.12.35.28;	author jed;	state Exp;
branches;
next	1.12;

1.12
date	87.10.22.12.33.38;	author jed;	state Exp;
branches;
next	1.11;

1.11
date	87.10.02.15.53.54;	author jed;	state Exp;
branches;
next	1.10;

1.10
date	87.10.02.15.29.44;	author jed;	state Exp;
branches;
next	1.9;

1.9
date	87.10.02.15.13.52;	author jed;	state Exp;
branches;
next	1.8;

1.8
date	87.10.01.09.19.43;	author jed;	state Exp;
branches;
next	1.7;

1.7
date	87.09.23.18.10.03;	author jed;	state Exp;
branches;
next	1.6;

1.6
date	87.09.23.17.25.52;	author jed;	state Exp;
branches;
next	1.5;

1.5
date	87.09.23.16.15.31;	author jed;	state Exp;
branches;
next	1.4;

1.4
date	87.09.23.15.10.07;	author jed;	state Exp;
branches;
next	1.3;

1.3
date	87.09.22.22.33.29;	author jed;	state Exp;
branches;
next	1.2;

1.2
date	87.09.22.18.09.14;	author jed;	state Exp;
branches;
next	1.1;

1.1
date	87.09.14.14.42.57;	author jed;	state Exp;
branches;
next	;


desc
@@


1.33
log
@Put single-quotes around the substitutions of INITS.
@
text
@##############################################################################
# File:         Makefile
# Description:  for building, distributing, and maintaining frobs
# Author:       Eric G. Muehle, Jed Krohnfeldt, Craig Steury
# Created:      22-Sep-87
# RCS $Header: /u/misc/pass/lisp/tools/frobs/RCS/Makefile,v 1.32 1992/07/06 11:56:42 kessler Exp eeide $
#
# (c) Copyright 1987, 1988, University of Utah, all rights reserved
##############################################################################
#
# Set the variables below for your site and Lisp system:
#
# CL is the path/name of the lisp used to build Frobs.
# OBJ is the extension (such .b or .o) for Lisp binary object files.
# LSP is the extension (such as .l) for Lisp source files.
# QUIT is the name of the Lisp function used to terminate a Lisp session.
# BIN is the directory where frobs.b should find all of the frobs .b files.
#     (make sure BIN is an absolute path, and not a relative one)

CL	 = cl
OBJ	 = b
LSP      = l
QUIT	 = sys:exit
INITS    =
BIN      = \$$LISP/modules/the-frobs

INSTALL = \
	/n/morgan/v/lisp/modules \
	/n/jensen/v/misc/cl/modules \
	/n/jaguar/usr/server/hp300/lisp/modules

##############################################################################
# Files.
##############################################################################

# frob manual
DOC     = frobs

# frob sources
SOURCES = Makefile globals.$(LSP) pack.$(LSP) struct.$(LSP) misc.$(LSP)\
	define.$(LSP) ask-assert.$(LSP) user-methods.$(LSP)\
	daemons.$(LSP) dynamic.$(LSP) p-frobs.$(LSP) useful.$(LSP)\
	the-rules.$(LSP) paths.$(LSP) sys-specific.$(LSP) $(DOC).tex 

# frob binaries
KERNEL	= globals.$(OBJ) pack.$(OBJ) struct.$(OBJ) misc.$(OBJ) define.$(OBJ)
FROBS	= ask-assert.$(OBJ) user-methods.$(OBJ) daemons.$(OBJ) dynamic.$(OBJ)\
	the-rules.$(OBJ) sys-specific.$(OBJ)
AUX     = p-frobs.$(OBJ) useful.$(OBJ)

# frob load file - loads frobs
LOAD    = frobs.$(OBJ)

# frob test files
TEST    = examples/prob1.$(LSP) examples/prob1a.$(LSP)\
	examples/prob1a-m.$(LSP) examples/prob1b.$(LSP)\
	examples/prob1b-m.$(LSP) examples/prob2.$(LSP)\
	examples/prob3.$(LSP) examples/prob4.$(LSP)\
	examples/prob5.$(LSP) examples/prob5a.$(LSP)\
	examples/prob5b.$(LSP) examples/ships.$(LSP)\
	examples/sticks.$(LSP) examples/test.$(LSP)

############################################################################
# Make targets.
############################################################################

# default target
help:
	@@echo "make [frobs install clean doc test help]"

# build frobs system
frobs:	$(KERNEL) $(FROBS) $(LOAD)

# build auxiliary frobs tools
aux:	$(AUX)

# install frobs binaries
install: frobs
	@@csh install.csh $(INSTALL)

# clean frobs directory
clean:
	rm -f $(KERNEL) $(FROBS) $(AUX) $(LOAD) frobs.$(LSP) *.aux *.dvi *.log

# build frobs documentation
doc:		$(DOC).dvi
$(DOC).dvi:	$(DOC).aux
$(DOC).aux:	$(DOC).tex

# test frobs system
test:
	(cd examples; make test CL=$(CL) LSP=$(LSP) QUIT=$(QUIT))
	
############################################################################
# Individual file targets. 
############################################################################

.SUFFIXES: .$(LSP) .$(OBJ) .dvi .aux .tex .c

# Turn off the implicit GNU Make LEX rule.
%.c : %.l
%.r : %.l

.tex.aux:
	@@latex $*
	@@rm -f $*.dvi

.aux.dvi:
	@@latex $*

.$(LSP).$(OBJ):
	@@echo "Compiling $*.$(LSP)..."
	echo \(progn\
		'$(INITS)'\
		\(load\ \"sys-specific\"\)\
		\(load\ \"pack\"\)\
		\(load\ \"globals\"\)\
		\(load\ \"struct\"\)\
		\(load\ \"misc\"\)\
		\(load\ \"define\"\)\
		\(load\ \"user-methods\"\)\
		\(load\ \"ask-assert\"\)\
		\(compile-file \"$*.$(LSP)\"\)\
		\($(QUIT)\)\)\) | $(CL)

############################################################################
# Frobs file targets.
############################################################################

sys-specific.$(OBJ):	sys-specific.$(LSP)

globals.$(OBJ):		sys-specific.$(OBJ) globals.$(LSP) 

pack.$(OBJ):		globals.$(OBJ) pack.$(LSP)

struct.$(OBJ):		globals.$(OBJ) struct.$(LSP)

misc.$(OBJ):		globals.$(OBJ) misc.$(LSP)

define.$(OBJ):		globals.$(OBJ) pack.$(OBJ) struct.$(OBJ)\
			misc.$(OBJ) define.$(LSP)

ask-assert.$(OBJ):	$(KERNEL) ask-assert.$(LSP)

user-methods.$(OBJ):	$(KERNEL) user-methods.$(LSP)

daemons.$(OBJ):		$(KERNEL) ask-assert.$(OBJ) daemons.$(LSP)

dynamic.$(OBJ):		$(KERNEL) daemons.$(OBJ) user-methods.$(OBJ)\
			ask-assert.$(OBJ) dynamic.$(LSP)

p-frobs.$(OBJ):		$(KERNEL) user-methods.$(OBJ) p-frobs.$(LSP)

useful.$(OBJ):		$(KERNEL) user-methods.$(OBJ) useful.$(LSP)

the-rules.$(OBJ):	$(KERNEL) daemons.$(OBJ)

##############################################################################
# The file paths.l has Lisp forms like (load "./struct") in it.  This
# Makefile copies paths.l to frobs.l, replacing occurrences of "./ with
# $(BIN) which was set above.  Then frobs.l is compiled.  This file loads
# all of the rest of the frobs files, and should be put on a standard system
# directory, such as on the (require ..) path for your Common Lisp.
##############################################################################

frobs.$(LSP):		Makefile paths.$(LSP)
	rm -f frobs.$(LSP)
	sed -e "s#\"\.\/#\"$(BIN)\/#" < paths.$(LSP) > frobs.$(LSP)

frobs.$(OBJ): 	frobs.$(LSP)
	@@echo "Compiling frobs.$(LSP)..."
	@@echo \(progn\
		'$(INITS)'\
		\(load\ \"globals\"\)\
		\(compile-file\ \"frobs.$(LSP)\"\)\
		\($(QUIT)\)\)\) | $(CL)

##############################################################################
# End of file.
##############################################################################
@


1.32
log
@Removed /local from install directories since we don't use it anymore.
@
text
@d6 1
a6 1
# RCS $Header: /misc/pass/lisp/tools/frobs/RCS/Makefile,v 1.31 1991/04/01 06:08:43 stoller Exp kessler $
d114 1
a114 1
		$(INITS)\
d173 1
@


1.31
log
@UCL changes..
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.30 89/04/11 15:03:14 stoller Locked $
d25 1
a25 1
BIN      = \$$LISP/modules/local/the-frobs
d28 3
a30 3
	/n/morgan/v/lisp/modules/local \
	/n/jensen/v/misc/cl/modules/local \
	/n/jaguar/usr/server/hp300/lisp/modules/local
@


1.30
log
@Updates for local installation.
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.30 89/03/27 10:10:58 stoller Exp $
d24 1
d98 1
a98 1
.SUFFIXES: .$(LSP) .$(OBJ) .dvi .aux .tex
d100 4
d113 2
a114 1
	@@echo \(progn\
@


1.29
log
@"fixed"
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.28 88/04/20 16:10:18 jed Locked $
d26 4
a29 2
INSTALL = /n/cs/rsrc/hp300/lisp/modules/local /n/morgan/v/lisp/modules/local \
	/n/wasatch/rsrc/hp300/lisp/modules/local
@


1.28
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.27 88/04/20 11:15:23 jed Locked $
d34 1
a34 1
DOC     = frob-guide
@


1.27
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.26 88/04/08 10:47:17 jed Locked $
d151 2
a152 2
# The file paths.l has Lisp forms like (load "PATH/struct") in it.  This
# Makefile copies paths.l to frobs.l, replacing occurrences of PATH with
d160 1
a160 1
	sed -e "s#PATH#$(BIN)#" < paths.$(LSP) > frobs.$(LSP)
@


1.26
log
@No change.
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.25 88/03/31 19:00:04 kessler Locked $
@


1.25
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile.dist,v 1.2 88/02/25 10:09:36 jed Locked $
@


1.24
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.21 88/02/04 11:36:16 steury Exp $
d8 1
a8 1
# (c) Copyright 1987, University of Utah, all rights reserved
d10 9
a19 7
# CL is the name of the lisp used to build FROBS.
# OBJ is the extension (typically .b or .o) for Lisp binary object files.
# LSP is the extension (typically .l) for Lisp source files.
# QUIT is the lisp function used to terminate the lisp session.
# LPATH is the directory where frob binaries are loaded from lisp.
# (default values below are for HP Common Lisp)

d24 1
a24 2
LPATH    = "\$$LISP/modules/local/the-frobs"
BIN      = /lisp/modules/local
d26 2
a27 1
VPATH    = /n/orion/v/misc/lisp/tools/frobs
d29 7
d37 4
d42 5
a46 4
S1	= pack.$(LSP) globals.$(LSP) struct.$(LSP) misc.$(LSP) 
S2	= define.$(LSP) user-methods.$(LSP) ask-assert.$(LSP)
S3 	= daemons.$(LSP) dynamic.$(LSP) p-frobs.$(LSP) the-rules.$(LSP) 
S4	= useful.$(LSP) Makefile paths.$(LSP)
d48 4
a59 14
# frob binaries

KERNEL	= globals.$(OBJ) pack.$(OBJ) struct.$(OBJ) misc.$(OBJ) define.$(OBJ)
FROBS	= ask-assert.$(OBJ) user-methods.$(OBJ) daemons.$(OBJ) dynamic.$(OBJ)\
	p-frobs.$(OBJ) useful.$(OBJ) the-rules.$(OBJ)

LOAD    = frobs.$(OBJ)

# frob manual

TEX	= frob-guide.tex
AUX	= frob-guide.aux
DVI	= frob-guide.dvi

d64 1
a64 2
# default - so dummies don't do the wrong thing

d66 1
a66 3
	@@echo "make [hpcl install-hpcl clean-hpcl pcls install-pcls clean-pcls"
	@@echo "      kcl install-kcl clean-kcl lucid install-lucid clean-lucid"
	@@echo "      shar test doc help]"
a67 59
# default is hpcl

all:	hpcl

# build frobs on hp common lisp

hpcl:
	@@(make frobs)

install-hpcl:
	@@(make install)

clean-hpcl:
	@@(make clean)

# build frobs on pcls

pcls:
	@@(make frobs "CL=pcls" "QUIT=psl:quit" "OBJ=b" "LSP=l"\
		"LPATH=/v/misc/psl/pclsdist/lap")

install-pcls:
	@@(make install "CL=pcls" "QUIT=psl:quit" "OBJ=b"\
		"LPATH=/v/misc/psl/pclsdist/lap")

clean-pcls:
	@@(make clean "CL=pcls" "QUIT=psl:quit" "OBJ=b"\
		"LPATH=/v/misc/psl/pclsdist/lap")

# build frobs on kyoto common lisp

kcl:
	@@(make frobs "CL=lc" "QUIT=()" "OBJ=o" "LSP=l"\
		"LPATH=unknown")

install-kcl:
	@@(make install "CL=lc" "QUIT=()" "OBJ=o"\
		"LPATH=unknown")

clean-kcl:
	@@(make clean "CL=lc" "QUIT=()" "OBJ=o"\
		"LPATH=unknown")

# build frobs on lucid common lisp

lucid:
	@@(make frobs "CL=lisp" "QUIT=sys:quit" "OBJ=lbin" "LSP=lisp"\
		"LPATH=unknown")

install-lucid:
	@@(make install "CL=lc" "QUIT=sys:quit" "OBJ=lbin" "LSP=lisp"\
		"LPATH=unknown")

clean-lucid:
	@@(make clean "CL=lc" "QUIT=sys:quit" "OBJ=lbin" "LSP=lisp"\
		"LPATH=unknown")

############################################################################

d71 2
a72 2
# build frobs documentation
doc:	$(DVI)
d74 3
a76 2
$(DVI):	$(AUX)
$(AUX):	$(TEX)
d78 3
a80 9
# build shar files for frobs distribution
shar:
	rm -f frob.shar.*
	shar $(S1) > frob.shar.1
	shar $(S2) > frob.shar.2
	shar $(S3) > frob.shar.3
	shar $(S4) > frob.shar.4
	shar $(TEST) > frob.shar.5
	shar $(TEX) > frob.shar.6
d82 4
a85 4
tar:
	tar cvf frobs.tar *.l Makefile frob-guide.tex examples
	compress frobs.tar
	rcp frobs.tar.Z /n/cs/usr/spool/ftp/pub
d89 1
a89 3
	@@echo "Testing FROBS..."
	@@echo \(progn\ \(load\ \"examples/test.$(LSP)\"\)\
		\($(QUIT)\)\)\) | $(CL)
a90 8
# install frobs binaries
install:
	@@csh $(VPATH)/install.csh $(BIN)

# clean frobs directory
clean:
	rm -f *.$(OBJ) frobs.$(LSP) frob.shar.* *.aux *.dvi *.log

d92 1
a92 1
# Individual Files.
d107 1
a107 1
		\(load\ \"mapcar-fix\"\)\
d119 1
a119 1
# Frobs files.
d122 1
a122 1
mapcar-fix.$(OBJ):	mapcar-fix.$(LSP)
d124 1
a124 1
globals.$(OBJ):		mapcar-fix.$(OBJ) globals.$(LSP) 
d150 8
d160 1
a160 1
	sed -e "s#PATH#$(LPATH)#" < $(VPATH)/paths.$(LSP) > frobs.$(LSP)
d169 1
d171 1
@


1.23
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.22 88/02/04 14:32:44 jed Locked $
d8 1
a8 1
# (c) Copyright 1987, 1988, University of Utah, all rights reserved
d10 2
a11 2
#
# CL is the name of the lisp used to build Frobs.
d15 2
d22 2
d25 1
a25 3
# BIN is where frob binaries are loaded from lisp.  
# This should be set to the same directory that install: puts them on.
BIN      = "\$$LISP/modules/local/the-frobs"
a26 3
# frob manual
DOC     = frob-guide

a27 4
SOURCES = Makefile globals.$(LSP) pack.$(LSP) struct.$(LSP) misc.$(LSP)\
	define.$(LSP) ask-assert.$(LSP) user-methods.$(LSP)\
	daemons.$(LSP) dynamic.$(LSP) p-frobs.$(LSP) useful.$(LSP)\
	the-rules.$(LSP) paths.$(LSP) $(DOC).tex
d29 4
a32 4
# frob binaries
KERNEL	= globals.$(OBJ) pack.$(OBJ) struct.$(OBJ) misc.$(OBJ) define.$(OBJ)
FROBS	= ask-assert.$(OBJ) user-methods.$(OBJ) daemons.$(OBJ) dynamic.$(OBJ)\
	p-frobs.$(OBJ) useful.$(OBJ) the-rules.$(OBJ) 
a33 4
# frob load file - loads frobs (install on (load ..) or (require ..) path)
LOAD    = frobs.$(OBJ)

# frob test files
d42 14
d61 1
d63 3
a65 1
	@@echo "make [frobs install clean doc test help]"
d67 59
d129 2
a130 6
# install frobs binaries
install:	frobs
	@@csh install.csh
# probably want something like this for install:
#	@@rcp $(KERNEL) $(FROBS) $(BIN)
#	$rcp $(LOAD) "load or require path"
d132 2
a133 3
# clean frobs directory
clean:
	rm -f $(KERNEL) $(FROBS) $(LOAD) frobs.$(LSP)*.aux *.dvi *.log
d135 9
a143 4
# build frobs documentation
doc:		$(DOC).dvi
$(DOC).dvi:	$(DOC).aux
$(DOC).aux:	$(DOC).tex
d145 5
d156 8
d225 1
a225 1
	sed -e "s#PATH#$(BIN)#" < paths.$(LSP) > frobs.$(LSP)
a233 1
############################################################################
a234 1
############################################################################
@


1.22
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.21 88/02/04 11:36:16 jed Locked $
@


1.21
log
@Added tar file stuff.
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.20 88/02/01 11:03:35 steury Locked $
d8 1
a8 1
# (c) Copyright 1987, University of Utah, all rights reserved
d10 2
a11 2

# CL is the name of the lisp used to build FROBS.
a14 2
# LPATH is the directory where frob binaries are loaded from lisp.
# (default values below are for HP Common Lisp)
a19 2
LPATH    = "\$$LISP/modules/local/the-frobs"
BIN      = /lisp/modules/local
d21 3
a23 1
VPATH    = /n/orion/v/misc/lisp/tools/frobs
d25 3
d29 4
d34 4
a37 4
S1	= pack.$(LSP) globals.$(LSP) struct.$(LSP) misc.$(LSP) 
S2	= define.$(LSP) user-methods.$(LSP) ask-assert.$(LSP)
S3 	= daemons.$(LSP) dynamic.$(LSP) p-frobs.$(LSP) the-rules.$(LSP) 
S4	= useful.$(LSP) Makefile paths.$(LSP)
d39 4
a50 14
# frob binaries

KERNEL	= globals.$(OBJ) pack.$(OBJ) struct.$(OBJ) misc.$(OBJ) define.$(OBJ)
FROBS	= ask-assert.$(OBJ) user-methods.$(OBJ) daemons.$(OBJ) dynamic.$(OBJ)\
	p-frobs.$(OBJ) useful.$(OBJ) the-rules.$(OBJ)

LOAD    = frobs.$(OBJ)

# frob manual

TEX	= frob-guide.tex
AUX	= frob-guide.aux
DVI	= frob-guide.dvi

a55 1

d57 1
a57 3
	@@echo "make [hpcl install-hpcl clean-hpcl pcls install-pcls clean-pcls"
	@@echo "      kcl install-kcl clean-kcl lucid install-lucid clean-lucid"
	@@echo "      shar test doc help]"
a58 59
# default is hpcl

all:	hpcl

# build frobs on hp common lisp

hpcl:
	@@(make frobs)

install-hpcl:
	@@(make install)

clean-hpcl:
	@@(make clean)

# build frobs on pcls

pcls:
	@@(make frobs "CL=pcls" "QUIT=psl:quit" "OBJ=b" "LSP=l"\
		"LPATH=/v/misc/psl/pclsdist/lap")

install-pcls:
	@@(make install "CL=pcls" "QUIT=psl:quit" "OBJ=b"\
		"LPATH=/v/misc/psl/pclsdist/lap")

clean-pcls:
	@@(make clean "CL=pcls" "QUIT=psl:quit" "OBJ=b"\
		"LPATH=/v/misc/psl/pclsdist/lap")

# build frobs on kyoto common lisp

kcl:
	@@(make frobs "CL=lc" "QUIT=()" "OBJ=o" "LSP=l"\
		"LPATH=unknown")

install-kcl:
	@@(make install "CL=lc" "QUIT=()" "OBJ=o"\
		"LPATH=unknown")

clean-kcl:
	@@(make clean "CL=lc" "QUIT=()" "OBJ=o"\
		"LPATH=unknown")

# build frobs on lucid common lisp

lucid:
	@@(make frobs "CL=lisp" "QUIT=sys:quit" "OBJ=lbin" "LSP=lisp"\
		"LPATH=unknown")

install-lucid:
	@@(make install "CL=lc" "QUIT=sys:quit" "OBJ=lbin" "LSP=lisp"\
		"LPATH=unknown")

clean-lucid:
	@@(make clean "CL=lc" "QUIT=sys:quit" "OBJ=lbin" "LSP=lisp"\
		"LPATH=unknown")

############################################################################

d62 6
a67 2
# build frobs documentation
doc:	$(DVI)
d69 3
a71 2
$(DVI):	$(AUX)
$(AUX):	$(TEX)
d73 4
a76 9
# build shar files for frobs distribution
shar:
	rm -f frob.shar.*
	shar $(S1) > frob.shar.1
	shar $(S2) > frob.shar.2
	shar $(S3) > frob.shar.3
	shar $(S4) > frob.shar.4
	shar $(TEST) > frob.shar.5
	shar $(TEX) > frob.shar.6
a77 5
tar:
	tar cvf frobs.tar *.l Makefile frob-guide.tex examples
	compress frobs.tar
	rcp frobs.tar.Z /n/cs/usr/spool/ftp/pub

a83 8
# install frobs binaries
install:
	@@csh $(VPATH)/install.csh $(BIN)

# clean frobs directory
clean:
	rm -f *.$(OBJ) frobs.$(LSP) frob.shar.* *.aux *.dvi *.log

d145 1
a145 1
	sed -e "s#PATH#$(LPATH)#" < $(VPATH)/paths.$(LSP) > frobs.$(LSP)
d154 1
d156 1
@


1.20
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.19 88/02/01 10:53:34 jed Locked $
d144 5
@


1.19
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.18 88/01/06 19:40:17 muehle Locked $
d25 2
d153 1
a153 1
	@@csh install.csh $(BIN)
d220 1
a220 1
	sed -e "s#PATH#$(LPATH)#" < paths.$(LSP) > frobs.$(LSP)
@


1.18
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.17 88/01/05 16:17:38 jed Locked $
@


1.17
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.16 88/01/05 11:14:27 jed Locked $
d64 4
@


1.16
log
@added make-lucid and made Makefile more flexible, removed install
options
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.13 87/10/22 12:35:28 jed Locked $
d23 1
d61 3
a63 2
	@@echo "make [hpcl clean-hpcl pcls clean-pcls kcl clean-kcl"
	@@echo "      lucid clean-lucid shar test doc help]"
d70 3
d82 4
d96 4
d110 4
d145 4
@


1.15
log
@Added mapcar fix.
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.14 87/12/09 14:21:58 steury Locked $
d12 2
a13 1
# EXT is the extensions (typically .b or .o) for Lisp binary files.
d16 1
a16 6
# MODULES is the directory where the load file is installed for distribution.
# OBJECTS is the directory where binaries are installed for distribution.
#
# Often LPATH, OBJECTS, and MODULES are the same directory, depending on how
# installation of frobs is done across various machines.
# (default values below are for hp common lisp)
d19 2
a20 1
EXT	 = b
a22 2
MODULES  = /lisp/modules/local
OBJECTS  = /lisp/modules/local/the-frobs
d26 4
a29 4
S1	= pack.l globals.l struct.l misc.l 
S2	= define.l user-methods.l ask-assert.l
S3 	= daemons.l dynamic.l p-frobs.l the-rules.l 
S4	= useful.l Makefile paths.l
d31 7
a37 4
TEST    = examples/prob1.l examples/prob1a.l examples/prob1a-m.l\
	examples/prob1b.l examples/prob1b-m.l examples/prob2.l\
	examples/prob3.l examples/prob4.l examples/prob5.l examples/prob5a.l\
	examples/prob5b.l examples/ships.l examples/sticks.l examples/test.l
d41 3
a43 3
KERNEL	= globals.$(EXT) pack.$(EXT) struct.$(EXT) misc.$(EXT) define.$(EXT)
FROBS	= ask-assert.$(EXT) user-methods.$(EXT) daemons.$(EXT) dynamic.$(EXT)\
	p-frobs.$(EXT) useful.$(EXT) the-rules.$(EXT)
d45 1
a45 1
LOAD    = frobs.$(EXT)
d58 1
d60 2
a61 1
	@@echo "make [hpcl pcls kcl doc install-hpcl install-pcls install-kcl shar test clean help]"
d68 2
a69 2
install-hpcl:
	@@(make install)
d74 2
a75 1
	@@(make frobs "CL=pcls" "QUIT=psl:quit" "EXT=b")
d77 3
a79 5
install-pcls:
	@@(make install "CL=pcls" "QUIT=psl:quit" "EXT=b"\
		"LPATH=/v/misc/psl/pclsdist/lap"\
		"MODULES=orion:/v/misc/psl/pclsdist/lap"\
		"OBJECTS=orion:/v/misc/psl/pclsdist/lap")
d84 2
a85 4
	@@(make frobs "CL=lc" "QUIT=()" "EXT=o"\
		"LPATH=unknown"\
		"MODULES=unknown"\
		"OBJECTS=unknown")
d87 3
a89 5
install-kcl:
	@@(make install "CL=lc" "QUIT=()" "EXT=o"\
		"LPATH=unknown"\
		"MODULES=unknown"\
		"OBJECTS=unknown")
d91 10
a111 8
# distribute frobs to various machines at utah
# (rdist has problems on hpux, use .dist as semaphore file to emulate rdist)
install: frobs
	@@echo "installing frob load file --> $(MODULES)"
	@@rcp $(LOAD) $(MODULES)
	@@echo "installing frob binaries --> $(OBJECTS)"
	@@rcp $(KERNEL) $(FROBS) $(OBJECTS)

d125 2
a126 2
	@@echo '(progn (load "examples/test.l")\
		($(QUIT)))' | $(CL)
d130 1
a130 1
	rm -f *.$(EXT) frobs.l frob.shar.* *.aux *.dvi *.log
d136 1
a136 1
.SUFFIXES: .l .b .dvi .aux .tex
d145 13
a157 13
.l.b:
	@@echo "Compiling $*.l..."
	@@echo '(progn\
		(load "mapcar-fix")\
		(load "pack")\
		(load "globals")\
		(load "struct")\
		(load "misc")\
		(load "define")\
		(load "user-methods")\
		(load "ask-assert")\
		(compile-file "$*.l")\
		($(QUIT)))' | $(CL)
d163 1
a163 1
mapcar-fix.$(EXT):	mapcar-fix.l
d165 1
a165 1
globals.$(EXT):		mapcar-fix.$(EXT) globals.l	
d167 1
a167 1
pack.$(EXT):		globals.$(EXT) pack.l
d169 1
a169 1
struct.$(EXT):		globals.$(EXT) struct.l
d171 1
a171 1
misc.$(EXT):		globals.$(EXT) misc.l
d173 2
a174 2
define.$(EXT):		globals.$(EXT) pack.$(EXT) struct.$(EXT)\
			misc.$(EXT) define.l
d176 1
a176 1
ask-assert.$(EXT):	$(KERNEL) ask-assert.l
d178 1
a178 1
user-methods.$(EXT):	$(KERNEL) user-methods.l
d180 1
a180 1
daemons.$(EXT):		$(KERNEL) ask-assert.$(EXT) daemons.l
d182 2
a183 2
dynamic.$(EXT):		$(KERNEL) daemons.$(EXT) user-methods.$(EXT)\
			ask-assert.$(EXT) dynamic.l
d185 1
a185 1
p-frobs.$(EXT):		$(KERNEL) user-methods.$(EXT) p-frobs.l
d187 1
a187 1
useful.$(EXT):		$(KERNEL) user-methods.$(EXT) useful.l
d189 1
a189 1
the-rules.$(EXT):	$(KERNEL) daemons.$(EXT)
d191 3
a193 3
frobs.l:		Makefile paths.l
	rm -f frobs.l
	sed -e "s#PATH#$(LPATH)#" < paths.l > frobs.l
d195 6
a200 6
frobs.$(EXT): 	frobs.l
	@@echo "Compiling frobs.l..."
	@@echo '(progn\
		(load "globals")\
		(compile-file "frobs.l")\
		($(QUIT)))' | $(CL)
@


1.14
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.13 87/10/22 12:35:28 jed Locked $
d74 1
a74 4
	@@(make frobs "CL=pcls" "QUIT=psl:quit" "EXT=b"\
		"LPATH=/v/misc/psl/pclsdist/lap"\
		"MODULES=orion:/v/misc/psl/pclsdist/lap"\
		"OBJECTS=orion:/v/misc/psl/pclsdist/lap")
d151 1
d166 3
a168 1
globals.$(EXT):		globals.l
@


1.13
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.12 87/10/22 12:33:38 jed Locked $
d26 2
a27 2
MODULES  = jensen:/lisp/modules/local
OBJECTS  = jensen:/lisp/modules/local/the-frobs
d113 1
a113 1
	@@echo "installing frob load file on $(MODULES)"
d115 1
a115 1
	@@echo "installing frob binaries on $(OBJECTS)"
@


1.12
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.11 87/10/02 15:53:54 jed Locked $
d80 1
a80 1
	@@(make install "CL=pcls" "QUIT=psl:quit "EXT=b"\
@


1.11
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.10 87/10/02 15:29:44 jed Locked $
d13 8
a20 2
# QUIT is lisp function used to terminate the lisp session.
# BIN is the directory where frob binaries will live
d22 6
a27 4
CL	= cl
EXT	= b
QUIT	= sys:exit
BIN     = "\$$LISP/modules/local/the-frobs"
d34 1
a34 1
S4	= useful.l Makefile paths.l frobs.l 
d46 1
d61 1
a61 1
	@@echo "make [frobs doc install shar test clean help]"
d63 38
d112 5
a116 2
install: dist .dist
	@@echo >! .dist	
a117 12
dist:	frobs
	@@rdist
	@@echo "updating host jensen"

.dist:: $(LOAD)
	@@echo "updating $(LOAD)"
	@@rcp $(LOAD) jensen:/lisp/modules/local

.dist::	$(KERNEL) $(FROBS)
	@@echo "updating $?"
	@@rcp $? jensen:/lisp/modules/local/the-frobs

d196 1
a196 1
	sed -e "s#PATH#$(BIN)#" < paths.l > frobs.l
@


1.10
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.9 87/10/02 15:13:52 jed Locked $
d19 1
a19 1
BIN     = \$LISP/modules/local/the-frobs
d138 2
a139 2
define.$(EXT):		globals.$(EXT) pack.$(EXT) struct.$(EXT) misc.$(EXT)\
			define.l
@


1.9
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.8 87/10/01 09:19:43 jed Locked $
d14 1
d19 1
d26 1
a26 1
S4	= useful.l Makefile frobs.l 
d98 1
a98 1
	rm -f *.$(EXT) frob.shar.* *.aux *.dvi *.log
d155 4
@


1.8
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.7 87/09/23 18:10:03 jed Locked $
d19 2
d23 2
a25 3
AUX1 	= daemons.l dynamic.l p-frobs.l the-rules.l 
AUX2	= useful.l Makefile frobs.l 

d31 2
d38 2
d61 2
a62 1
# distribute frobs to various machines
d83 2
a84 2
	shar $(AUX1) > frob.shar.3
	shar $(AUX2) > frob.shar.4
@


1.7
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.6 87/09/23 17:25:52 jed Locked $
d45 1
a45 1
	@@echo "make [frobs doc dist shar test clean help]"
d57 1
a57 1
dist:	frobs update .dist
d60 1
a60 2
# distribute sources to source hosts and load files to jensen
update:
d63 2
d68 1
a68 2
# copy binaries more current than .dist semaphore to jensen
.dist:	$(KERNEL) $(FROBS)
@


1.6
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.5 87/09/23 16:15:31 jed Locked $
d48 1
a48 2
frobs:	$(FROBS) $(LOAD)
	@@echo "FROBS complete"
d57 2
a58 1
dist:	src-dist .dist
d60 2
a61 2
# distribute frobs sources to orion
src-dist:
a62 3

# distribute frobs binaries to jensen if more current than .dist semaphore 
.dist:	$(FROBS) $(LOAD)
a63 2
	@@echo "updating $(FROBS)"
	@@rcp $(FROBS) jensen:/lisp/modules/local/the-frobs
d66 5
a70 1
	@@echo >! .dist	
@


1.5
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.4 87/09/23 15:10:07 jed Locked $
d10 1
a30 1

d33 1
d35 4
d43 6
a48 1
frobs:	$(FROBS) frobs.$(EXT)
d51 23
d75 1
a75 1
	rm -f frob.shar.1 frob.shar.2 frob.shar.3 frob.shar.4 frob.shar.5
d81 1
d83 1
d89 1
a89 5
dist:
	@@rdist
	rcp $(FROBS) jensen:/lisp/modules/local/the-frobs
	rcp frobs.$(EXT) jensen:/lisp/modules/local

d91 1
a91 1
	rm -f *.$(EXT) frob.shar.*
d97 8
a104 1
.SUFFIXES: .l .b
@


1.4
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: Makefile,v 1.3 87/09/22 22:33:29 jed Locked $
d14 1
a14 1
CL	= clc
@


1.3
log
@*** empty log message ***
@
text
@d6 1
a6 1
# RCS $Header: $
d56 2
a57 2
	rcp $(FROBS) /n/jensen/lisp/modules/local/the-frobs
	rcp frobs.$(EXT) /n/jensen/lisp/modules/local
@


1.2
log
@*** empty log message ***
@
text
@d2 8
a9 3
# Makefile for FROBS
# The make variables CL, EXT, and QUIT must be changed to be consistent
# with the system that FROBS is being built on.
d11 1
a11 1
# EXT is the extensions (.b or .o) for Lisp binary files.
a12 1
##############################################################################
a33 1

d54 5
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
# The make variables CL, EXT and QUIT must be changed to be consistent
d6 1
a6 1
# EXT is the suffix of lisp compiled files.
d10 3
a12 3
CL    = cl
EXT   = b
QUIT  = sys:exit
d14 1
a14 1
S1	= pack.l globals.l struct.l misc.l
d18 1
a18 1
AUX2	= frobs.l frobdefs.l useful.l Makefile ships.l sticks.l
d23 1
a23 1
	examples/prob5b.l examples/test.l
d25 6
d35 1
a35 2
hpcl:	frobs.l the-frobs.${EXT} the-rules.${EXT} daemons.${EXT}\
	p-frobs.${EXT} dynamic.${EXT} useful.${EXT}
d39 6
a44 6
	rm -f frob-file1 frob-file2 frob-file3 frob-file4 frob-file5
	shar ${S1} > frob-file1
	shar ${S2} > frob-file2
	shar ${AUX1} > frob-file3
	shar ${AUX2} > frob-file4
	shar ${TEST} > frob-file5
d49 1
a49 1
		(${QUIT}))' | ${CL}
d51 3
d55 1
a55 1
# Files
d58 1
a58 4
the-frobs.${EXT}:	the-frobs.l
	@@echo "Compiling FROBS..."
	@@echo '(progn (compile-file "the-frobs.l")\
		(${QUIT}))' | ${CL}
d60 12
a71 5
the-rules.${EXT}:	the-rules.l the-frobs.${EXT}
	@@echo "Compiling RULES..."
	@@echo '(progn (load "the-frobs")\
		(compile-file "the-rules.l")\
		(${QUIT}))' | ${CL}
d73 3
a75 5
daemons.${EXT}:	daemons.l the-frobs.${EXT}
	@@echo "Compiling DAEMONS..."
	@@echo '(progn (load "the-frobs")\
		(compile-file "daemons.l")\
		(${QUIT}))' | ${CL}
d77 1
a77 4
the-frobs.l: $(S1) $(S2)
	@@echo "Collecting Sources ..."
	rm -f the-frobs.l
	cat $(S1) $(S2) > the-frobs.l
d79 1
a79 5
p-frobs.${EXT}:	the-frobs.${EXT} p-frobs.l
	@@echo "Compiling P-FROBS..."
	@@echo '(progn (load "the-frobs")\
		(compile-file "p-frobs.l")\
		(${QUIT}))' | ${CL}
d81 1
a81 5
dynamic.${EXT}:	the-frobs.${EXT} dynamic.l
	@@echo "Compiling DYNAMIC..."
	@@echo '(progn (load "the-frobs")\
		(compile-file "dynamic.l")\
		(${QUIT}))' | ${CL}
d83 1
a83 5
frobs.l: frobdefs.l
	rm -f frobs.l
	sed -e "s#PATH#`pwd`#" < frobdefs.l > /tmp/frobs.l
	sed -e "s#USER#`whoami`#" < /tmp/frobs.l > frobs.l
	rm -f /tmp/frobs.l
d85 24
a108 5
useful.${EXT}:	the-frobs.${EXT} useful.l
	@@echo "Compiling USEFUL..."
	@@echo '(progn (load "the-frobs")\
		(compile-file "useful.l")\
		(${QUIT}))' | ${CL}
@
