# ------------------------------------------------------------------------
# Makefile: manual pages of the SpecC Reference Compiler
# ------------------------------------------------------------------------
#
# Modifications: (most recent first)
#
# RD 10/03/02	separated 'clean' target into 'clean' and 'distclean'
# RD 05/25/01	renamed 'scc' to 'scrc'
# RD 05/24/01	reduced contents to SCRC requirements
# ------------------------------------------------------------------------

# --- macros

include ../Makefile.macros

ALL	=	catl/scrc.l

DIST	=	Makefile	\
		manl/scrc.l

ORIG	=	Makefile


# --- production rules

all:	$(ALL)

dirs:	catl manl

catl:
	$(MKDIR) catl
	$(CHGRP) $(FILE_GROUP) catl
	$(CHMOD) $(FILE_PERM)  catl

manl:
	$(MKDIR) manl
	$(CHGRP) $(FILE_GROUP) manl
	$(CHMOD) $(FILE_PERM)  manl

catl/scrc.l:		catl manl/scrc.l
	$(MAN) manl/scrc.l > catl/scrc.l
	$(CHGRP) $(FILE_GROUP) catl/scrc.l
	$(CHMOD) $(FILE_PERM) catl/scrc.l


# --- service rules

clean:
	-$(RM) core *.bak *.BAK

distclean:	clean
	-$(RM) catl/*

dist:
	for file in $(DIST); do echo $(DISTPREFIX)/$$file >>$(DISTLIST); done

orig:
	for file in $(ORIG); do echo $(ORIGPREFIX)/$$file >>$(ORIGLIST); done


# --- EOF Makefile ---
