#:ts=8
#
# $Id: Makefile,v 0.34 1996-08-06 22:18:49+02 steppler Exp $
#
# Makefile CNCL bin
#
TOPDIR	= ..

include $(TOPDIR)/make.conf

PROGS = CNgenclass CNarray CNarray2 CNarray3 CNhier

FILES = CNarray.pl CNarray2.pl CNarray3.pl CNgenclass.pl CNhier.pl \
	Makefile dummy.c findperl newdepend newlink $(PROGS)

# Comment if you con't want to build the fuzzy rule compiler
FUZZYDIR= fuzzy

SUBDIRS	= $(FUZZYDIR)
TESTDIRS= $(SUBDIRS)

all:	$(PROGS) all-src

CNgenclass:	CNgenclass.pl
	./findperl >CNgenclass
	tail +2 CNgenclass.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNgenclass
	chmod +x CNgenclass

CNarray:	CNarray.pl
	./findperl >CNarray;
	tail +2 CNarray.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNarray; \
	chmod +x CNarray

CNarray2:	CNarray2.pl
	./findperl >CNarray2;
	tail +2 CNarray2.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNarray2; \
	chmod +x CNarray2

CNarray3:	CNarray3.pl
	./findperl >CNarray3;
	tail +2 CNarray3.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNarray3; \
	chmod +x CNarray3

CNhier:		CNhier.pl
	./findperl >CNhier;
	tail +2 CNhier.pl | \
	    sed -e 's:<INCDIR>:$(includedir):g' >>CNhier; \
	chmod +x CNhier

veryclean distclean::
	rm -f $(PROGS)

templates::	$(PROGS)

install::
	cp $(PROGS) $(bindir)


# Common stuff
include $(TOPDIR)/make.subdirs
