# Makefile to build the CRISP compiled macros.
#
# This makefile installs the macros into the ../../macros directory.
#

CRUNCH	= crunch
ROOT	= ../macros
M       = $(ROOT)
MKBD	= $M/kbd
MTTY	= $M/tty

all:	macros

macros:	$M $(MKBD) $(MTTY)
	$(CRUNCH) -m -o $(ROOT) *.cr kbd/*.cr tty/*.cr

$M:
	-+mkdir $M

$(MKBD):
	-+mkdir $(MKBD)

$(MTTY):
	-+mkdir $(MTTY)

clean:
	-rm -f core mon.out crisp.log
	-rm -f *.cm
	-rm -f *.m

