#
#
# rcsid('$Author: pleuk $',
# 	'$Date: 1993/04/27 08:58:52 $',
# 	'$Revision: 1.0 $',
# 	'$Source: /usr/export/home/projects/ltg2/Pleuk/Distribution/Pleuk/RCS/Makefile,v $',
# 	'$State: Exp $').
#
# $Log: Makefile,v $
# Revision 1.0  1993/04/27  08:58:52  pleuk
# Version 1.00beta from Jo
#
# Revision 0.5  1991/07/15  10:06:10  pleuk

# The Makefile for Pleuk's backbone and specializations.
# You should *not* need to edit this file.  See INSTALL for
# instructions.

include ./Makefile.defs

include ${SPEC}/Makefile

spec: fb_code
	(cd ${PLEUKCODE}; ${MAKE} ${MFLAGS} SPEC=${SPEC} SPECCODE="${SPECCODE}"\
		CONFIGURE=${CONFIGURE})

standard:
	${MAKE} 
	${MAKE} SPEC=Cfg

all: non_fb_code
	@for i in ${ALLSPECS}; \
	do \
	    (echo Making all in $$i;  ${MAKE} ${MFLAGS} SPEC=$$i); \
	done

new: non_fb_code
	@for i in ${PLEUKALLDIRS} ; \
	   do \
 	   (echo Making new in $$i; cd $$i; ${MAKE} ${MFLAGS} all); \
	   done

fb_code:
	@echo making backbone
	@for i in ${PLEUKFBDIRS} ; \
	   do \
	   (cd $$i; ${MAKE} ${MFLAGS} fb_code); \
	   done

non_fb_code:
	@for i in ${PLEUKNONFBDIRS} ; \
	do \
	    (echo Making all in $$i; cd $$i; ${MAKE} ${MFLAGS} all); \
	done

xterm:
	cd xterm; make

clean:
	for i in ${PLEUKALLDIRS} ; \
	   do \
 	   (cd $$i; ${MAKE} ${MFLAGS} clean); \
	   done

realclean:
	for i in ${PLEUKALLDIRS} ; \
	   do \
 	   (cd $$i; pwd; ${MAKE} ${MFLAGS} realclean); \
	   done


compile_specialization: 
	cd ${SPECDIR}; make prolog_objects
